Pressed android button state
问题 I've been following a tutorial that explains how to use background for a button with different states but it doesn't seem to work :S Here is my code : <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/boutonn" android:state_window_focused="false"/> <item android:drawable="@drawable/boutonnpousse" android:state_pressed="true"/> <item android:drawable="@drawable/boutonnpousse" android:state_focused=