Closed froriz5 closed 4 years ago
I am having similar issue. Setting theme with style for
Instead of taking style from the theme given in builder it takes textInputStyle style from application, so it ignores given theme and uses same styling as all other textInputs within application. Meanwhile it takes correct style values given for header, even it is within same style set to the builder.
Android API Version: 9 Material Library Version: 1.3.0-alpha01 Device: LG G5
Thanks for reporting this, I'm looking into it.
i am on 1.3.0 version bug is still here
Same here
Description: Full description of issue here When instantiating a MaterialDatePicker using the Builder, one of the params is a theme override called setTheme(...)
Here, we can modify how to theme the view with different colors.
It looks like this component uses
colorPrimary
for almost all the theming.However, it looks like the
TextInputLayout
used by the Text Entry mode when selecting a date ignores thecolorPrimary
value passed in the builder.Current Behavior
In this current behavior, the
AppTheme
has acolorPrimary
set to a white value.Expected behavior: The override theme's
colorPrimary
should be used instead of the app theme'scolorPrimary
attribute.Source code: Example style:
In the code:
Android API version: 10 Q
Material Library version: 1.2.0-alpha04
Device: Pixel 2