Android control togglebutton multi state button usage details

What is togglebutton?

Togglebutton generally has two states: checked and unchecked, and different text needs to be set for different states

Togglebutton property

Android: checked = "true" -- the current button status. When "true" is selected and "false" is not selected, Android: texton = "on" and "Android: checked =" true ", the display depends on the checked status, that is, when checked =" true ", texton =" on "is displayed, and when checked =" false ", checked =" true "is displayed

Let's take a look at the implementation effect:

Specific code

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>