/TheElements/res/drawable/btn_ui_element.xml

http://thelements.googlecode.com/ · XML · 52 lines · 35 code · 3 blank · 14 comment · 0 complexity · fb1e0b391af435af237e7c5a05228d28 MD5 · raw file

  1. <!--
  2. <shape xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:shape="rectangle">
  4. <gradient
  5. android:type="radial"
  6. android:startColor="#FFAA00"
  7. android:endColor="#FF0000"
  8. android:angle="0" />
  9. <stroke android:width="1px" android:color="#000" />
  10. <corners android:radius="5dp" />
  11. </shape>
  12. -->
  13. <selector xmlns:android="http://schemas.android.com/apk/res/android">
  14. <item android:state_pressed="true" >
  15. <shape android:shape="oval">
  16. <gradient
  17. android:startColor="#c17f05"
  18. android:endColor="#faac1d"
  19. android:angle="0" />
  20. <stroke
  21. android:width="1px"
  22. android:color="#000" />
  23. </shape>
  24. </item>
  25. <item android:state_focused="true" >
  26. <shape android:shape="oval">
  27. <gradient
  28. android:endColor="#aafaac1d"
  29. android:startColor="#aac17f05"
  30. android:angle="0" />
  31. <stroke
  32. android:width="1px"
  33. android:color="#A000" />
  34. </shape>
  35. </item>
  36. <item>
  37. <shape android:shape="oval">
  38. <gradient
  39. android:endColor="#A555"
  40. android:startColor="#A222"
  41. android:angle="90" />
  42. <stroke
  43. android:width="1px"
  44. android:color="#000" />
  45. </shape>
  46. </item>
  47. </selector>