Android Selecter Background Selector use

Source: Internet
Author: User

Android:drawable
This property is required, by default when the background picture is.


Android:state_pressed
Boolean value. True refers to the state of the control when the user taps or touches it. Default is False


Android:state_focused
Boolean value. Ture refers to the state of the current control when it receives focus. Default is False


Android:state_hovered
Boolean value. True indicates that the cursor is moved to the state on the current control. Default is False


android:state_selected
Boolean value. True indicates the selected state, such as selecting one of the options under the arrow keys in a drop-down list.
The difference between this and focus is that selected is a case of insufficient focus. For example, a ListView gets focus, and one item (selected) is selected with the arrow keys


Android:state_checkable
Boolean value. Ture indicates the status that can be checked. This only works if the control has transitions between the checked and unchecked states.


Android:state_checked
Boolean value. True indicates that the current control is checked (check state)


Android:state_enabled
Boolean value. True indicates that the current control is out of available state. such as can be clicked


android:state_activated
Boolean value. True indicates the state of the current control being activated.


Android:state_window_focused

Boolean value. True indicates that the application window obtains the state of focus when the current control is out of the front.

Android Selecter Background Selector use

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.