0

I am working on a Switch widget and I want to reduce the height of the thumb. By default the thumb's and the track's height are the same. But I want the thumb's height to be less than that of the track.

Thanks in advance for the suggestions.

Pang
  • 9,564
  • 146
  • 81
  • 122
Saraschandraa
  • 478
  • 1
  • 10
  • 28

1 Answers1

1

Unfortunately the styles for the Switch widget are private, so you can change the drawable resources.

You can use the Android Switch Backport library and change the drawable resources to your needs.

LordRaydenMK
  • 13,074
  • 5
  • 50
  • 56