Search code examples
androidandroid-buttonandroid-stylesandroid-switch

How To Customize Switch Button with Shape?


How to make a customized switch button like this :

Switch Button

I had the idea to make it with "Jelly Bean Switch", but don't know how to make round corders, borders, and changing the font colors.

Thanks for your help.


Solution

  • I ended up coming across a library that does something similar to what you are looking for.

    https://github.com/7heaven/SHSegmentControl

    You can download the library and edit the features to your liking. It lookis like this: https://github.com/7heaven/SHSegmentControl/blob/master/arts/arts1.gif