Button Pressed Animation be longer
Posted
by
user1263567
on Stack Overflow
See other posts from Stack Overflow
or by user1263567
Published on 2012-03-30T04:47:43Z
Indexed on
2012/03/30
5:29 UTC
Read the original article
Hit count: 152
i have this button xml, when it be will pressed, the pressed image(b) would be longer to display before it goes back to normal button.
Here's my xml:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true" android:state_pressed="false" android:drawable="@drawable/a" />
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/b" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/b" />
<item android:drawable="@drawable/a" />
Anyone has idea on this?
© Stack Overflow or respective owner