android - Appcompat v7 Material checkbox changing color to default black in Lollipop devices -
i using appcompat v7 material checkbox. project theme light blue, assigning light blue checkbox checked color in styles.xml follows
<!--checked color--> <item name="coloraccent">@color/light_blue</item> <!--un checked color--> <item name="android:textcolorsecondary">@color/secondary_text</item>
in layout file
<checkbox android:id="@+id/chk_tick" android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@drawable/abc_btn_check_material" android:layout_gravity="center"/>
everything works fine versions below kitkat's, problem arises lollipop versions ( default automatically assigning black color ). dont know why happening. kindly please me solutions. in advance
remove line:
android:button="@drawable/abc_btn_check_material"
your checkbox
should styled automatically, without setting android:button
property.
Comments
Post a Comment