android - Have long press transition animation effect on linear layout -
referring android: how achieve glow effect when long-pressing list item?
by applying list_selector_holo_light.xml
on linear layout's background (which not being used in listview) , thought can achieve glowing animation effect long press on it.
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_window_focused="false" android:drawable="@android:color/transparent" /> <!-- though these 2 point same resource, have 2 states drawable invalidate when coming out of pressed state. --> <item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/list_selector_disabled_holo_light" /> <item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/list_selector_disabled_holo_light" /> <item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_light" /> <item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_light" /> <item android:state_focused="true" android:drawable="@drawable/list_focused_holo" /> </selector>
however, not see transition animation effect, transits light blue dark blue.
is there else had missed out?
Comments
Post a Comment