|
152 | 152 | <item name="android:textAppearance">?attr/textAppearanceLabelLarge</item> |
153 | 153 | <item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.Material3.Chip</item> |
154 | 154 | <item name="android:textColor">@color/m3_chip_text_color</item> |
| 155 | + <item name="chipIconTint">@color/m3_chip_text_color</item> |
155 | 156 | <item name="closeIconTint">@color/m3_chip_text_color</item> |
156 | 157 | <item name="chipStrokeColor">@color/m3_chip_stroke_color</item> |
157 | 158 | <item name="chipSurfaceColor">?attr/colorSurface</item> |
158 | 159 | <item name="chipBackgroundColor">@color/m3_chip_background_color</item> |
159 | 160 | <item name="chipStrokeWidth">1dp</item> |
160 | 161 | <item name="rippleColor">@color/m3_chip_ripple_color</item> |
161 | 162 | <item name="checkedIcon">@drawable/ic_m3_chip_checked_circle</item> |
| 163 | + <item name="android:stateListAnimator" tools:ignore="NewApi"> |
| 164 | + @animator/m3_chip_state_list_anim |
| 165 | + </item> |
162 | 166 | </style> |
163 | 167 |
|
164 | 168 | <!-- Style for Input Chip: for user-entered information. |
|
189 | 193 | <item name="chipEndPadding">4dp</item> |
190 | 194 | </style> |
191 | 195 |
|
| 196 | + <!-- Style for input Chip, to be used when placed against a background |
| 197 | + that needs protection, such as an image. --> |
| 198 | + <style name="Widget.Material3.Chip.Input.Elevated"> |
| 199 | + <item name="android:elevation" tools:ignore="NewApi"> |
| 200 | + @dimen/m3_chip_elevated_elevation |
| 201 | + </item> |
| 202 | + <item name="android:stateListAnimator" tools:ignore="NewApi"> |
| 203 | + @animator/m3_elevated_chip_state_list_anim |
| 204 | + </item> |
| 205 | + <item name="chipStrokeColor">@android:color/transparent</item> |
| 206 | + <item name="chipBackgroundColor">@color/m3_elevated_chip_background_color</item> |
| 207 | + </style> |
| 208 | + |
192 | 209 | <!-- Style for input chips with system icons. For input chips with avatar |
193 | 210 | style icons, use Widget.Material3.Chip.Input, instead. --> |
194 | 211 | <style name="Widget.Material3.Chip.Input.Icon" parent="Widget.Material3.Chip.Input"> |
195 | 212 | <item name="chipIconSize">18dp</item> |
196 | 213 | <item name="iconStartPadding">4dp</item> |
197 | 214 | </style> |
198 | 215 |
|
| 216 | + <!-- Style for Input Chip with system icons, to be used when placed against a |
| 217 | + background that needs protection, such as an image. --> |
| 218 | + <style name="Widget.Material3.Chip.Input.Icon.Elevated"> |
| 219 | + <item name="android:elevation" tools:ignore="NewApi"> |
| 220 | + @dimen/m3_chip_elevated_elevation |
| 221 | + </item> |
| 222 | + <item name="android:stateListAnimator" tools:ignore="NewApi"> |
| 223 | + @animator/m3_elevated_chip_state_list_anim |
| 224 | + </item> |
| 225 | + <item name="chipStrokeColor">@android:color/transparent</item> |
| 226 | + <item name="chipBackgroundColor">@color/m3_elevated_chip_background_color</item> |
| 227 | + </style> |
| 228 | + |
199 | 229 | <!-- Style for Suggestion Chips: for suggested information. |
200 | 230 | Suggestion Chips are used to help a user narrow their intent by |
201 | 231 | presenting dynamically generated suggestions like possible responses or |
|
237 | 267 | @dimen/m3_chip_elevated_elevation |
238 | 268 | </item> |
239 | 269 | <item name="android:stateListAnimator" tools:ignore="NewApi"> |
240 | | - @animator/m3_chip_state_list_anim |
| 270 | + @animator/m3_elevated_chip_state_list_anim |
241 | 271 | </item> |
242 | 272 | <item name="chipStrokeColor">@android:color/transparent</item> |
243 | 273 | <item name="chipBackgroundColor">@color/m3_elevated_chip_background_color</item> |
|
263 | 293 |
|
264 | 294 | <item name="enforceTextAppearance">false</item> |
265 | 295 | <item name="android:textColor">@color/m3_chip_assist_text_color</item> |
| 296 | + <item name="chipIconTint">@color/m3_assist_chip_icon_tint_color</item> |
266 | 297 |
|
267 | 298 | <item name="chipMinHeight">32dp</item> |
268 | 299 |
|
|
283 | 314 | @dimen/m3_chip_elevated_elevation |
284 | 315 | </item> |
285 | 316 | <item name="android:stateListAnimator" tools:ignore="NewApi"> |
286 | | - @animator/m3_chip_state_list_anim |
| 317 | + @animator/m3_elevated_chip_state_list_anim |
287 | 318 | </item> |
288 | 319 | <item name="chipStrokeColor">@android:color/transparent</item> |
289 | 320 | <item name="chipBackgroundColor">@color/m3_elevated_chip_background_color</item> |
|
318 | 349 | <item name="android:elevation" tools:ignore="NewApi"> |
319 | 350 | @dimen/m3_chip_elevated_elevation</item> |
320 | 351 | <item name="android:stateListAnimator" tools:ignore="NewApi"> |
321 | | - @animator/m3_chip_state_list_anim |
| 352 | + @animator/m3_elevated_chip_state_list_anim |
322 | 353 | </item> |
323 | 354 | <item name="chipStrokeColor">@android:color/transparent</item> |
324 | 355 | <item name="chipBackgroundColor">@color/m3_elevated_chip_background_color</item> |
|
0 commit comments