jm_blues_codebtn_style.xml 1.2 KB

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <selector xmlns:android="http://schemas.android.com/apk/res/android" >
  3. <item android:state_pressed="true">
  4. <shape android:shape="rectangle">
  5. <corners android:topLeftRadius="15dp" android:topRightRadius="15dp" android:bottomLeftRadius="15dp" android:bottomRightRadius="15dp" />
  6. <gradient android:startColor="#d6d6d6" android:endColor="#d6d6d6" android:angle="270.0" />
  7. </shape>
  8. </item>
  9. <item android:state_focused="true"> <!-- 焦点 -->
  10. <shape android:shape="rectangle">
  11. <corners android:topLeftRadius="15dp" android:topRightRadius="15dp" android:bottomLeftRadius="15dp" android:bottomRightRadius="15dp" />
  12. <gradient android:startColor="#d6d6d6" android:endColor="#d6d6d6" android:angle="270.0" />
  13. </shape>
  14. </item>
  15. <item > <!-- 无焦点 -->
  16. <shape android:shape="rectangle">
  17. <corners android:topLeftRadius="15dp" android:topRightRadius="15dp" android:bottomLeftRadius="15dp" android:bottomRightRadius="15dp" />
  18. <gradient android:startColor="#2abfff" android:endColor="#2abfff" android:angle="270.0" />
  19. </shape>
  20. </item>
  21. </selector>