Answer the question
In order to leave comments, you need to log in
What is the reason style is not applied to checkBox?
Good day!
I am trying to style the checkBox
<style name="CustomeCheckBox">
<item name="android:background">@drawable/custome_check_box</item>
<item name="android:textColor">@drawable/custome_check_box</item>
<item name="android:button">@android:color/transparent</item>
<item name="android:drawableRight">@drawable/ic_arrow_down_blue</item>
</style>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/custome_checked_box" android:state_checked="true" />
<item android:drawable="@android:color/transparent" android:state_checked="false" />
</selector>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="@color/gray_medium" android:endColor="@color/gray_medium" android:angle="-90.0"/>
<corners android:radius="10.0dip" />
</shape>
<CheckBox
android:id="@+id/item_shift_time_dispetcher"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="48dp"
android:checked="true"
android:padding="8dp"
android:text="@string/item_esas_shift_time_dispetcher"
android:textSize="16sp"
android:textStyle="bold"
android:theme="@style/CustomeCheckBox"
app:layout_constraintStart_toEndOf="@+id/item_shift_time_brigad"
app:layout_constraintTop_toTopOf="@+id/item_shift_time_brigad" />
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question