开发者

How to create a toggle button with 3 options...?

I want to create a toggle button with 3 options. I don't want to use radio button 开发者_Go百科or check box.

I want to create like this....

How to create a toggle button with 3 options...?

How to create this...?

Thanks in advance...!


Create the artwork for the left/middle/right buttons and create three separate buttons next to each other in a horizontal linear layout

Then in code get all three references to the buttons. When a button is clicked set a boolean e.g _button1Clicked = true (or use an array?) and set the image to a downstate, check the other buttons, set their images to upstate and reset their booleans to false!

Easy!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜