Guest User

Untitled

a guest
Oct 24th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. <SeekBar
  2. android:id="@+id/seek1"
  3. android:layout_width="fill_parent"
  4. android:layout_height="wrap_content"
  5. android:layout_margin="10dp"
  6. android:progressDrawable="@drawable/style_progressbar"
  7. android:thumb="@drawable/style_progressbar_circle"
  8. android:progress="20" />
  9.  
  10. <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
  11. <item android:id="@android:id/background">
  12. <shape android:shape="rectangle" >
  13. <corners android:radius="5dp" />
  14. <gradient
  15. android:angle="270"
  16. android:endColor="@color/gris_hint"
  17. android:startColor="@color/gris_hint" />
  18. </shape>
  19. </item>
  20. <item android:id="@android:id/secondaryProgress">
  21. <clip>
  22. <shape android:shape="rectangle" >
  23. <corners android:radius="5dp" />
  24. <gradient
  25. android:angle="270"
  26. android:endColor="@color/gris"
  27. android:startColor="@color/gris" />
  28. </shape>
  29. </clip>
  30. </item>
  31. <item android:id="@android:id/progress">
  32. <clip>
  33. <shape android:shape="rectangle" >
  34. <corners android:radius="5dp" />
  35. <gradient
  36. android:angle="270"
  37. android:endColor="@color/gris"
  38. android:startColor="@color/gris" />
  39. </shape>
  40. </clip>
  41. </item>
  42. </layer-list>
  43.  
  44. <selector xmlns:android="http://schemas.android.com/apk/res/android">
  45. <item android:drawable="@drawable/red_scrubber_control_disabled_holo" android:state_enabled="false"/>
  46. <item android:drawable="@drawable/red_scrubber_control_pressed_holo" android:state_pressed="true"/>
  47. <item android:drawable="@drawable/red_scrubber_control_focused_holo" android:state_selected="true"/>
  48. <item android:drawable="@drawable/red_scrubber_control_normal_holo"/>
  49. </selector>
  50.  
  51. <SeekBar
  52. ....
  53. android:splitTrack="false" />
Add Comment
Please, Sign In to add comment