916130473f89692fcadf3c5e669a572c7af6bb3e.svn-base 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <resources xmlns:tools="http://schemas.android.com/tools">
  3. <!-- 仿 ios 开关按钮 -->
  4. <declare-styleable name="SwitchButton" tools:ignore="ResourceName">
  5. <!-- 是否选中 -->
  6. <attr name="android:checked" />
  7. <!-- 是否禁用 -->
  8. <attr name="android:enabled" />
  9. </declare-styleable>
  10. <!-- 设置栏 -->
  11. <declare-styleable name="SettingBar" tools:ignore="ResourceName">
  12. <!-- 左边 -->
  13. <attr name="bar_leftText" format="string"/>
  14. <attr name="bar_leftHint" format="string"/>
  15. <attr name="bar_leftIcon" format="reference" />
  16. <attr name="bar_leftColor" format="color" />
  17. <attr name="bar_leftSize" format="dimension" />
  18. <!-- 右边 -->
  19. <attr name="bar_rightText" format="string" />
  20. <attr name="bar_rightHint" format="string"/>
  21. <attr name="bar_rightIcon" format="reference" />
  22. <attr name="bar_rightColor" format="color" />
  23. <attr name="bar_rightSize" format="dimension" />
  24. <!-- 分割线 -->
  25. <attr name="bar_lineVisible" format="boolean" />
  26. <attr name="bar_lineColor" format="reference|color" />
  27. <attr name="bar_lineSize" format="dimension" />
  28. <attr name="bar_lineMargin" format="dimension" />
  29. </declare-styleable>
  30. <!-- 自定义数字进度条 -->
  31. <declare-styleable name="NumberProgressBar" tools:ignore="ResourceName">
  32. <attr name="pb_progress" format="integer"/>
  33. <attr name="pb_maxProgress" format="integer"/>
  34. <attr name="pb_textSize" format="dimension"/>
  35. <attr name="pb_textColor" format="color"/>
  36. <attr name="pb_textOffset" format="dimension"/>
  37. <attr name="pb_unreachedColor" format="color"/>
  38. <attr name="pb_reachedColor" format="color"/>
  39. <attr name="pb_reachedHeight" format="dimension"/>
  40. <attr name="pb_unreachedHeight" format="dimension"/>
  41. </declare-styleable>
  42. </resources>