jm_backlogin_btn.xml 1.4 KB

123456789101112131415161718192021222324252627
  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. <stroke android:width="1dp" android:color="#2abfff"/>
  6. <corners android:topLeftRadius="25.0dip" android:topRightRadius="25.0dip" android:bottomLeftRadius="25.0dip" android:bottomRightRadius="25.0dip"/>
  7. <gradient android:startColor="#d6d6d6" android:endColor="#d6d6d6" android:angle="270.0"/>
  8. </shape>
  9. </item>
  10. <item android:state_focused="true"> <!-- 焦点 -->
  11. <shape android:shape="rectangle">
  12. <stroke android:width="1dp" android:color="#2abfff"/>
  13. <corners android:topLeftRadius="25.0dip" android:topRightRadius="25.0dip" android:bottomLeftRadius="25.0dip" android:bottomRightRadius="25.0dip"/>
  14. <gradient android:startColor="#d6d6d6" android:endColor="#d6d6d6" android:angle="270.0"/>
  15. </shape>
  16. </item>
  17. <item> <!-- 无焦点 -->
  18. <shape android:shape="rectangle">
  19. <stroke android:width="1dp" android:color="#2abfff"/>
  20. <corners android:topLeftRadius="25.0dip" android:topRightRadius="25.0dip" android:bottomLeftRadius="25.0dip" android:bottomRightRadius="25.0dip"/>
  21. <gradient android:startColor="#50000000" android:endColor="#50000000" android:angle="270.0"/>
  22. </shape>
  23. </item>
  24. </selector>