I want to customize a Material chip.
I would think this is how to do it:
<style name="AppTheme" parent="Theme.MaterialComponents.NoActionBar">
.... lots more theme stuff here
<item name="chipStyle">@style/MaterialChips</item>
<item name="chipGroupStyle">@style/MaterialChips</item>
<item name="chipStandaloneStyle">@style/MaterialChips</item>
</style>
<style name="MaterialChips" parent="Widget.MaterialComponents.Chip.Choice">
<item name="chipBackgroundColor">@color/chips</item>
</style>
None of the tags like chipStyle
affect the chips. But if I set app:chipBackgroundColor="@color/chips"
in xml it works.
It also works fine like this for other things like say <item name="materialAlertDialogTheme">@style/AlertDialogTheme</item>
.
The material documentation (if you can call it that) is really not helping.