Thursday, 20 June 2013

Custom Toggle Button in ANDROID

Toggle Button is a special button that has two states  for eg :"on" and "off".It can be an alternative to Radio Buttons.
Method to create a Custom Toggle Button is given below :

in custom_btn.xml


    
    


in style.xml :
 

    

in custom_toggle_bg.xml :

    
    

in custom_toggle_btn.xml :

    
    



No comments:

Post a Comment