I want to custom button like this
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#EAEAEA"/>
<corners android:topLeftRadius="8dip"
android:bottomRightRadius="8dip"
android:bottomLeftRadius="1dip"
android:topRightRadius="1dip"
/>
<item android:drawable="@drawable/photo2"
android:state_pressed="true" />
<item android:drawable="@drawable/photo1" />
but at
<item android:drawable="@drawable/photo2"
android:state_pressed="true" />
<item android:drawable="@drawable/photo1" />
it doesn't work ( if it work it will chang button backgroud when press or un press button )
What should I do?