/TheElements/res/drawable/btn_mm.xml

http://thelements.googlecode.com/ · XML · 42 lines · 38 code · 4 blank · 0 comment · 0 complexity · d1333c96723c1156cc69c501a301c8c9 MD5 · raw file

  1. <selector xmlns:android="http://schemas.android.com/apk/res/android">
  2. <item android:state_pressed="true" >
  3. <shape android:shape="rectangle">
  4. <gradient
  5. android:startColor="#555"
  6. android:endColor="#222"
  7. android:angle="90" />
  8. <stroke
  9. android:width="1px"
  10. android:color="#777" />
  11. <corners android:radius="15dip"/>
  12. </shape>
  13. </item>
  14. <item android:state_focused="true" >
  15. <shape android:shape="rectangle">
  16. <gradient
  17. android:endColor="#faac1d"
  18. android:startColor="#c17f05"
  19. android:angle="90" />
  20. <stroke
  21. android:width="1px"
  22. android:color="#FFF" />
  23. <corners android:radius="15dip"/>
  24. </shape>
  25. </item>
  26. <item>
  27. <shape android:shape="rectangle">
  28. <gradient
  29. android:endColor="#555"
  30. android:startColor="#222"
  31. android:angle="90" />
  32. <stroke
  33. android:width="1px"
  34. android:color="#777" />
  35. <corners android:radius="15dip"/>
  36. </shape>
  37. </item>
  38. </selector>