Answer the question
In order to leave comments, you need to log in
How to lengthen Switch?
In all Google guidelines, the Switch widget (aka SwitchCompat) has a long track.
However, if you use this widget from the support library, the track will be short:
What's the easiest way to make it longer?
Answer the question
In order to leave comments, you need to log in
Add these lines to the tag in the XML file.
android:scaleX="2"
android:scaleY="2"
<Switch
android:id="@+id/switchOnOff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleX="2"
android:scaleY="2"/>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question