Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. <item name="listChoiceBackgroundIndicator">@android:drawable/list_selector_holo_dark</item>
  2.  
  3. <?xml version="1.0" encoding="utf-8"?>
  4. <selector xmlns:android="http://schemas.android.com/apk/res/android">
  5.  
  6. <item android:state_window_focused="false" android:drawable="@android:color/transparent" />
  7.  
  8. <!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
  9. <item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/list_selector_disabled_holo_dark" />
  10. <item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/list_selector_disabled_holo_dark" />
  11. <item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_dark" />
  12. <item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/list_selector_background_transition_holo_dark" />
  13. <item android:state_focused="true" android:drawable="@drawable/list_focused_holo" />
  14. </selector>
  15.  
  16. <?xml version="1.0" encoding="utf-8"?>
  17. <transition xmlns:android="http://schemas.android.com/apk/res/android">
  18. <item android:drawable="@drawable/list_pressed_holo_dark" />
  19. <item android:drawable="@drawable/list_longpressed_holo" />
  20. </transition>
  21.  
  22. android:listSelector="@drawable/custom_list_selector"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement