Android Question Switch ON / OFF Button example

Richard Goh

Active Member
Licensed User
Longtime User
Hi, I would like to create a switch On/Off type of button. eg. swap right to on and left to off. But don't really know how to do it. Is there any example or sample code available? Thank you.
 
Upvote 0
Something very basic ... 2 labels and LongClick .. food for thought anyway lol

On a serious note regarding the O and | , would you not confuse users.. I thought it was "O" (Zero) for Off and "l" (One) for On ??
 

Attachments

Upvote 0
Thanks
Something very basic ... 2 labels and LongClick .. food for thought anyway lol

On a serious note regarding the O and | , would you not confuse users.. I thought it was "O" (Zero) for Off and "l" (One) for On ??
Hi mj. thanks. my wrong interpretation.
 
Upvote 0
Back
Top