Android programming control status configuration file example
This article describes the control status configuration file for Android programming. Share it for your reference, as follows:
<selector xmlns:andro> <!-- When stateless --> <item android:state_focused="false" android:state_selected="false" android:state_pressed="false" android:state_enabled="true" android:drawable="@drawable/blue" /> <!-- Selected status --> <item android:state_focused="false" android:state_selected="true" android:state_pressed="false" android:state_enabled="true" android:drawable="@drawable/blue" /> <!-- Get focus --> <item android:state_focused="true" android:state_selected="false" android:state_pressed="false" android:state_enabled="true" android:drawable="@drawable/blue" /> <!-- The status when pressed --> <item android:state_focused="false" android:state_selected="false" android:state_pressed="true" android:state_enabled="true" android:drawable="@drawable/blue" /> </selector>
I hope this article will be helpful to everyone's Android programming design.
Related Articles
Android implements system printing function
This article mainly introduces the Android system printing function, which has certain reference value. Interested friends can refer to it.2018-12-12Commonly used log keywords for Android
This article will share with you the commonly used log keywords on Android. Interested friends will take a look2017-09-09Implementing IM chat program and multi-person chat room based on XMPP protocol in Android
This article mainly introduces the method of implementing IM chat programs and multi-person chat rooms based on the XMPP protocol in Android. XMPP is transmitted based on XML data format and is generally used for instant messaging (IM) and online on-site detection. Friends who need it can refer to it.2016-02-02Example of Android introducing OpenCV
This article mainly introduces an example of Android introducing OpenCV. The editor thinks it is quite good. I will share it with you now and give you a reference. Let's take a look with the editor2018-01-01Android uses SAX to add, delete, modify and search operations on XML
In the project, you will encounter addition, deletion, modification and search for XML. The following article mainly introduces relevant information about Android using SAX to add, deletion, modification and search for XML. The article introduces the example code in detail. If you need it, please learn with the editor below.2018-01-01android get ListView to return NULL
Below, the editor will bring you an article about how to get ListView and return NULL on Android. The editor thinks it is quite good, so I will share it with you now and give you a reference. Let's take a look with the editor2016-11-11Example of Android breakpoint continuous transmission downloader JarvisDownloader
This article mainly introduces an example of the Android breakpoint continuous transmission downloader JarvisDownloader. The editor thinks it is quite good. I will share it with you now and give you a reference. Let's take a look with the editor2018-05-05Android implements client voice motion interface example code
This article mainly introduces the example code of Android's client voice motion interface. The article only introduces the control layout method. Friends who need it can refer to it.2017-11-11Android animation Implement switch button animation (property animation of flat moving painting) example code
This article mainly introduces the relevant information on the Android animation to implement switch button animation (property animation of flat moving painting). Friends who need it can refer to it.2016-11-11Get the example of sdcard path for Android 4.0 version
Since Android 4.0, Google has simulated an SD card for mobile phones without memory cards, occupying the original SD card path, and mounting it to a subdirectory of the directory for the real SD card. Since the mounted directory does not have an official specification, the name will be different, and you can only search. The following is an example of obtaining the SDcard path of the Android 4.0 version.2014-03-03