I am using a switch widget. here is the code
<Switch
android:id="@+id/switchFabric"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:showText="true"
android:switchTextAppearance="@style/SwitchTextAppearance"
android:text="Do you have fabric ?"
android:textColor="@color/black_overlay"
android:textOff="No"
android:textOn="Yes"
android:thumbTextPadding="@dimen/padding_4"
android:padding="@dimen/padding_8"
android:thumbTint="@color/white"
android:layout_marginTop="@dimen/margin_10"
android:layout_marginBottom="@dimen/margin_20"
/>
And it comes out to be this
I want to increase the size of the thumb so that the Yes text has sufficient padding around it. I have tried experimenting with
thumbPadding
padding
switchMinWidth
How to achieve this ? Any suggestions are appreciated. Thanks in advance.