Android Basic Control Learning-----Togglebutton&switch

Source: Internet
Author: User

ToggleButton (switch button) and switch (switches) explained:

First, the core attributes of the explanation:

(1) ToggleButton

Texton: Text is displayed when the button is selected

Textoff: Text is displayed when the button is not selected

(2) Switch:

Showtext: Whether the text is displayed when setting Texton/off

Android:showtext: Sets whether to display text when on/off, Boolean

Android:splittrack: Whether to set a gap, let the slider and the bottom picture separated, Boolean

Android:switchminwidth: Set the minimum width of the switch

Android:switchpadding: Sets the spacing of text within the slider

Android:textoff: Text displayed when the button is not selected

Android:texton: Text displayed when the button is selected

Android:textstyle: Text style, bold, italic underline those

Android:track: Picture at the bottom

Android:thumb: Picture of the slider

You can try it yourself. Each property

Android Basic Control Learning-----Togglebutton&switch

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.