I am trying to set the tabhost selector since I found an example demonstrating that I have to create an xml file in drawable as follows:
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/hotel_selected" android:state_selected="true" /> <item android:drawable="@drawable/hotel" /> </selector>
but when compiling, eclipse keeps saying that this is an invalid start tag in this file.
please help me solve this problem.
many thanks.
source share