Depends on what you really need it for. Toggle is rather on/off type. if you
want to execute different actions it would be normal button with some if()
in you onClickListener to determine which action shall be called for this
button (and this shall depend on internal state of your app). Something
like:
protected Boolean doSecondAction = false;
and in onClick():
if( view.getId() == myButtonIdITalkHereAbout ) {
if( doSecondAction )
secondAction();
else
firstAction();
doSeconAction = (doSeconAction) ? false : true;
}
or anything like this.
Regards,
Marcin Orlowski
*Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy...
WebnetMobile on *Facebook <http://webnetmobile.com/fb/>* and
*Twitter<http://webnetmobile.com/twitter/>
*
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en