How to put space between switch button and its text in android?
I had the same issue, but for me the accepted answer of Sravan Sriram did not solve the problem.
What worked for me was the tag
android:switchPadding = "10dp"
Minimum space between the switch and caption text. docs
Sure, kindly use this
android:switchPadding="5dp"
If you are using androidx.appcompat.widget.SwitchCompat
then use app:switchPadding="8dp"
. This is work for me