Is there any way to make the height of the thumb of a switch bigger than the track height in Android versions prior to Lollipop ?
I am essentially trying to create a
The solution I came up with is just to use for the track a shape that is a line instead of a rectangle, and set the width explicitly in its stroke.
line
rectangle
stroke
For example if the switch is defined as follows:
The in the switch_track.xml drawable use a line shape with whatever width you desire: