possible xml elements in Android resources xmls ?

Posted by Vijay C on Stack Overflow See other posts from Stack Overflow or by Vijay C
Published on 2010-03-18T07:18:55Z Indexed on 2010/03/18 7:21 UTC
Read the original article Hit count: 352

Filed under:
|
|

I recently came across a forum post in thelink text android developers group. (link below)

It has one post which contains following xml. It is xml file which can be used in drawable folder.

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Non focused states -->
<item android:state_focused="false" android:state_selected="false"
android:state_pressed="false"
android:drawable="@drawable/tab_unselected" />
<item android:state_focused="false" android:state_selected="true"
android:state_pressed="false"
android:drawable="@drawable/tab_selected" />

<!-- Focused states -->
<item android:state_focused="true" android:state_selected="false"
android:state_pressed="false" android:drawable="@drawable/tab_focus"
/>
<item android:state_focused="true" android:state_selected="true"
 android:state_pressed="false" android:drawable="@drawable/tab_focus"/>

<!-- Pressed -->
<item android:state_pressed="true" android:drawable="@drawable/tab_press" />
</selector>

Now my question is, where is the documentation which tells me that i can use the following xml tags <selector> , <item>, <color>, <integer-array>, <string-array> and many others tag to create xml resources...?

I hope, i have explained what i want to know ?

© Stack Overflow or respective owner

Related posts about Xml

Related posts about android