-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MaterialButton android:foreground doesn't work on BottomSheetDialogFragment #2999
Comments
Could you verify if it works in an |
I tried different combinations MaterialButton in AppCompatDialogFragment MaterialButton in BottomSheetDialogFragment the code of button.
MaterialButton doesn't work properly when its inside of BottomSheetDialogFragment. It's working well with AppCompatDialogFragment source code of tests |
is there any update? |
I also faced this issue, but in a more interesting way. I'm using version 1.9.0 of the material components library. The issue is still reproducible in the latest alpha versions: 1.10.0-alpha05 and 1.11.0-alpha01. The ExoPlayer library (from media3) has PlayerControlView. Although it is highly customizable, the default implementation of 'rewind' and 'forward' buttons use exactly android:foreground attribute for displaying circle arrows. Both of them are just Buttons in the layout files, so they will be inflated as MaterialButtons at runtime (while using M3 theme). When PlayerControlView is used in a BottomSheetDialogFragment, those circle arrows are just not visible. |
Description:
MaterialButton
android:foreground
attribute doesn't work inside of aBottomSheetDialogFragment
. But It works as expected inFragment
.Expected behavior:
The foreground of
MaterialButton
should be shown inside of theBottomSheetDialogFragment
.material button inside of the
Fragment
material button inside of
BottomSheetDialogFragment
.Source code: The code snippet which is causing this issue
Minimal sample app repro:
Android API version: Android API version here
Material Library version: 1.5.0, 1.8.0-alpha01
Device: Emulator API 31
The text was updated successfully, but these errors were encountered: