Using Button Selectors in Android
If you do somethings in Buttons like background changing, stroke color means, Just follow up the xml. Button_Selector.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="true" android:state_pressed="false" android:drawable="@drawable/btn_pressed_bg" /> <item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/btn_pressed_bg" /> <item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/btn_pressed_bg" /> <item android:state_enabled="false" android:drawable="@drawable/btn_disabled"></item> <item android:drawable="@drawable/btn_normal_bg" /> </selector> btn_pressed.xml <?xml version="1.0...