values.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <resources xmlns:ns1="http://schemas.android.com/tools">
  3. <color name="widget_settingBarBackgroundColor">#FFFFFFFF</color>
  4. <color name="widget_settingBarSelectorColor">#0c000000</color>
  5. <declare-styleable name="NumberProgressBar" ns1:ignore="ResourceName">
  6. <attr format="integer" name="pb_progress"/>
  7. <attr format="integer" name="pb_maxProgress"/>
  8. <attr format="dimension" name="pb_textSize"/>
  9. <attr format="color" name="pb_textColor"/>
  10. <attr format="dimension" name="pb_textOffset"/>
  11. <attr format="color" name="pb_unreachedColor"/>
  12. <attr format="color" name="pb_reachedColor"/>
  13. <attr format="dimension" name="pb_reachedHeight"/>
  14. <attr format="dimension" name="pb_unreachedHeight"/>
  15. </declare-styleable>
  16. <declare-styleable name="RegexEditText">
  17. <!-- 正则输入限制 -->
  18. <attr format="string" name="inputRegex"/>
  19. <!-- 常用正则类型 -->
  20. <attr name="regexType">
  21. <!-- 手机号(只能以 1 开头) -->
  22. <enum name="mobile" value="0x01"/>
  23. <!-- 中文(普通的中文字符) -->
  24. <enum name="chinese" value="0x02"/>
  25. <!-- 英文(大写和小写的英文) -->
  26. <enum name="english" value="0x03"/>
  27. <!-- 整数(非 0 开头的数字) -->
  28. <enum name="count" value="0x04"/>
  29. <!-- 用户名(中文、英文、数字) -->
  30. <enum name="name" value="0x05"/>
  31. <!-- 非空格字符 -->
  32. <enum name="nonnull" value="0x06"/>
  33. </attr>
  34. </declare-styleable>
  35. <declare-styleable name="SettingBar" ns1:ignore="ResourceName">
  36. <!-- 左边 -->
  37. <attr format="string" name="bar_leftText"/>
  38. <attr format="string" name="bar_leftHint"/>
  39. <attr format="reference" name="bar_leftIcon"/>
  40. <attr format="color" name="bar_leftColor"/>
  41. <attr format="dimension" name="bar_leftSize"/>
  42. <attr format="color" name="bar_leftColorHint"/>
  43. <!-- 右边 -->
  44. <attr format="string" name="bar_rightText"/>
  45. <attr format="string" name="bar_rightHint"/>
  46. <attr format="reference" name="bar_rightIcon"/>
  47. <attr format="color" name="bar_rightColor"/>
  48. <attr format="dimension" name="bar_rightSize"/>
  49. <!-- 分割线 -->
  50. <attr format="boolean" name="bar_lineVisible"/>
  51. <attr format="reference|color" name="bar_lineColor"/>
  52. <attr format="dimension" name="bar_lineSize"/>
  53. <attr format="dimension" name="bar_lineMargin"/>
  54. </declare-styleable>
  55. <declare-styleable name="SwitchButton" ns1:ignore="ResourceName">
  56. <!-- 是否选中 -->
  57. <attr name="android:checked"/>
  58. <!-- 是否禁用 -->
  59. <attr name="android:enabled"/>
  60. </declare-styleable>
  61. </resources>