The Positive and Negative buttons are not seen when using dark theme on Android 11
Istalexnik opened this issue ยท 9 comments
Summary
Code to reproduce
Android version
Impacted devices
Installation method
SDK version
Other information
The issue is only on 1.2 and 2.0
1.1 does not have that problem
@Istalexnik Sorry for the late reply.
It seems to be working fine for me. Can you please provide me a screenshot, This might help me understand the issue.
Thank you!
@Aashir1111 Did you try adding color resource in color.xml?
<resources>
<!-- Here you can add color of your choice -->
<color name="positiveButtonTextColor">@color/colorAccent</color>
<color name="negativeButtonTextColor">@color/colorAccent</color>
<color name="bottomSheetDividerColor">#F5F5F5</color>
</resources>
The same problem Android 11 color.xml added
@SimpleappRed I got same problem and found need to put colors.xml in "values-night-v8" folder to override.
Facing same issue on android 10. In light mode the ok and cancel button are barely visible. Added color tag in colors.xml as well. Didnt solve
@ParthParekh-dev I got the same problem here,I think the OK and and cancel button is barely visible only when your app doesn't support dark theme,My application doesn't support Dark theme,But when i changed the theme of application to Day Night it is working perfectly
@SimpleappRed I got same problem and found need to put colors.xml in "values-night-v8" folder to override.
Worked nicely