Sunday 15 January 2012

How to modify the default button state in Android Studio using selector tag? -



How to modify the default button state in Android Studio using selector tag? -

android studio show me: element selector must declared,why?

<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/rd_btn_press" android:state_pressed="true" /> <item android:drawable="@drawable/rd_btn" android:state_focused="true" /> <item android:drawable="@drawable/rd_btn" /> </selector>

make sure have file in res/drawable folder. seems me have in other folder in android project. please comment if that's not case.

android

No comments:

Post a Comment