jm_backlogin_btn.xml 1.6 KB

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