I am developing an app that can post two kinds of questions. to switch views i need a switch button on the TOP. i need help to customize my switch button like following image.
Asked
Active
Viewed 1,049 times
5
-
2Possible duplicate of [How to custom switch button?](http://stackoverflow.com/questions/23358822/how-to-custom-switch-button) – Maheshwar Ligade Feb 06 '16 at 05:29
-
Go through this link http://stackoverflow.com/questions/23358822/how-to-custom-switch-button and also http://custom-android-dn.blogspot.in/2013/01/how-to-use-and-custom-switch-in-android.html – Maheshwar Ligade Feb 06 '16 at 05:30
-
thanks for you reply. thanks – Ronak Makwana Feb 06 '16 at 05:33
-
@RonakMakwana did you try my answer? – Shabbir Dhangot Feb 06 '16 at 05:35
-
i a looking at it now. – Ronak Makwana Feb 06 '16 at 05:38
1 Answers
1
I used below gihub library for this type of button
https://github.com/kyleduo/SwitchButton
Advantage:
- customize as per color you want
- with good animation of switching button

Shabbir Dhangot
- 8,954
- 10
- 58
- 80