Here's my switch in xml:
<Switch
android:id="@+id/mySwitch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:textOff="OFF"
android:textOn="ON" />
I cannot find a property in <switch>
to make the switch bigger, what I tried so far:
android-textSize
, controls the description size that is located right next to the switch, not the switch ON/OFF itself
android:switchMinWidth
, controls the width of each switch's component (ON/OFF)
I simply want my switch to be bigger, and the text ON and OFF also take effects of the switch getting bigger.
Is there a property I missed?
Try this solution.
Add these lines to your tag in xml file.
android:scaleX="2"
android:scaleY="2"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With