[android-developers] Two functions Button?

2011-03-27 Thread Gabriel
How I create a button with two functions? For example, when I click it once it starts a sound, and if I click it again it stops the sounds. Or a Mute button, that when I click it mutes all the sounds and change the imagebutton for a mute off image and if I click it again the sound returns. I

Re: [android-developers] Two functions Button?

2011-03-27 Thread Kostya Vasilyev
Sounds like maybe one of these: http://developer.android.com/reference/android/widget/ToggleButton.html Or a CheckBox with application-specified drawables. -- Kostya 27.03.2011 19:55, Gabriel пишет: How I create a button with two functions? For example, when I click it once it starts a