-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Labels
Description
Description: Full description of the issue here
Chip background color working in INPUT_MODE_CLOCK
When I switch to INPUT_MODE_KEYBOARD the Chip background color not working
Source code:
<style name="TimePickerTheme" parent="@style/ThemeOverlay.Material3.MaterialTimePicker">
<item name="chipStyle">@style/TimePickerTheme.Chip</item>
<item name="colorSurface">@color/colorSurface</item>
<item name="android:colorPrimary">@color/color_orange_100</item>
<item name="materialClockStyle">@style/TimePickerTheme.Clock</item>
<item name="borderlessButtonStyle">@style/TimePickerTheme.BorderlessButtonStyle</item>
<item name="materialButtonOutlinedStyle">@style/TimePickerTheme.BorderOutlineStyle</item>
<item name="materialTimePickerTitleStyle">@style/headline_4</item>
</style>
<style name="TimePickerTheme.Clock" parent="Widget.Material3.MaterialTimePicker.Clock">
<item name="clockHandColor">@color/color_orange_100</item>
<item name="clockFaceBackgroundColor">@color/time_picker_clock_color</item>
<item name="clockNumberTextColor">@color/colorOnSurface</item>
</style>
<style name="TimePickerTheme.Chip" parent="Widget.Material3.MaterialTimePicker.Display">
<item name="chipBackgroundColor">@color/time_picker_chip_selector</item>
<item name="android:textAppearance">@style/hds</item>
<item name="android:textColor">@color/colorOnSurface</item>
</style>
<style name="TimePickerTheme.BorderlessButtonStyle" parent="Widget.Material3.Button.TextButton">
<item name="android:textColor">@color//color_orange_100</item>
<item name="android:textAppearance">@style/button.large</item>
<item name="strokeWidth">0dp</item>
</style>
<style name="TimePickerTheme.BorderOutlineStyle" parent="Widget.Material3.MaterialTimePicker.Button">
<item name="android:textColor">@color/colorOnPrimary</item>
<item name="android:textAppearance">@style/headline_6</item>
<item name="android:backgroundTint">@color/time_picker_border_button_selector</item>
</style>
Minimal sample app repro: Please consider attaching a minimal sample app that reproduces the issue. This will help narrow down the conditions required for reproducing the issue, and it will speed up the bug fix process. You may attach a zip file of the sample app or link to a GitHub repo that contains the sample app.
Android API version: Android 13
Material Library version: 1.8.0
Device: Checked on Pixel 4
To help us triage faster, please check to make sure you are using the latest version of the library.
We also happily accept pull requests.

