[android-developers] Re: Toggle state button

2009-11-13 Thread Shrenik Vikam
use ToggleButton http://developer.android.com/intl/fr/reference/android/widget/ToggleButton.html On Nov 13, 3:48 pm, Ronnie ronnievie...@gmail.com wrote: Hi all, I need a button that stays pressed until I press on it the second time. Just like a button with the behaviour of a checkbox. How to

[android-developers] Re: Toggle state button

2009-11-13 Thread Rob
Thanks.. But I'm not able to set my text. the default text(ON/OFF) is displayed. I have specified text attr in xml. What is the correct way? Rob On Nov 13, 3:58 pm, Shrenik Vikam shre...@ruby-solutions.com wrote: use