Set com.google.android.material.chip.Chip selected color

后端 未结 6 1502
你的背包
你的背包 2021-02-01 02:42

How do I set the selected com.google.android.material.chip.Chip color? I don\'t want it to be the default gray. This is a single selection chip group.

Original

6条回答
  •  Happy的楠姐
    2021-02-01 03:04

    For those using alpha-05, I found that state_checked was being ignored on the filterable (parent="Widget.MaterialComponents.Chip.Filter") Chips. Instead, you need state_selected:

    
    
      
      
    
    

提交回复
热议问题