Material Chip chipStrokeColor is not being applied to Chip Element

Viewed 290

I am using Material Chips from the Material Components Library: com.google.android.material:material:1.1.0 I have created styles for Chips with custom background and state lists. The attribute chipStrokeColor is not being applied to the chips element. Even the attribute checkedIcon doesn't display on chips being checked.

Here's the style for Material Choice Chips:

<style name="Spectre.Chips.Choice" parent="Widget.MaterialComponents.Chip.Choice">
        <item name="fontFamily">@font/catamaran_bold</item>
        <item name="chipCornerRadius">10dp</item>
        <item name="chipStrokeColor">@color/colorAccent</item>
        <item name="chipSurfaceColor">@color/iris_purple</item>
        <item name="chipBackgroundColor">@color/outlined_btn_state_list</item>
        <item name="android:textColor">@color/outlined_btn_txt_list</item>
        <item name="chipIconTint">@color/box_input_state_list</item>
        <item name="rippleColor">@color/iris_purple</item>
        <item name="checkedIcon">@drawable/ic_check_white_24dp</item>
        <item name="android:checkable">true</item>
        <item name="chipStartPadding">10dp</item>
        <item name="chipEndPadding">10dp</item>
    </style>

Here's the Chip element in Layout.xml:

<com.google.android.material.chip.Chip
            style="@style/Spectre.Chips.Choice"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/_18_20" />

Here's a display for the chips on the device:

Material Chips on Android Device

0 Answers
Related