pb_attrs.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <resources>
  3. <!--布局中的文字-->
  4. <attr name="text" format="string"/>
  5. <!--文字的大小-->
  6. <attr name="textSize" format="dimension"/>
  7. <!--文字的颜色-->
  8. <attr name="textColor" format="color"/>
  9. <declare-styleable name="MenuItemView">
  10. <!--布局中左边的icon-->
  11. <attr name="leftIcon" format="reference"/>
  12. <!--布局中右边的icon-->
  13. <attr name="rightIcon" format="reference"/>
  14. <!--布局中的文字-->
  15. <attr name="text"/>
  16. <!--文字的大小-->
  17. <attr name="textSize"/>
  18. <!--文字的颜色-->
  19. <attr name="leftTextColor" format="color"/>
  20. <attr name="rightTextColor" format="color"/>
  21. </declare-styleable>
  22. <declare-styleable name="RowText">
  23. <!--布局中的文字-->
  24. <attr name="text"/>
  25. <!--文字的大小-->
  26. <attr name="textSize"/>
  27. <!--文字的颜色-->
  28. <attr name="textColor"/>
  29. </declare-styleable>
  30. <!--自定义验证码输入布局-->
  31. <declare-styleable name="InputCodeLayout">
  32. <!--输入框数量-->
  33. <attr name="icl_number" format="integer"/>
  34. <!--输入框宽度-->
  35. <attr name="icl_width" format="dimension|reference"/>
  36. <!--输入框高度-->
  37. <attr name="icl_height" format="dimension|reference"/>
  38. <!--输入框之间的分割线宽度-->
  39. <attr name="icl_divideWidth" format="dimension|reference"/>
  40. <!--输入文字颜色-->
  41. <attr name="icl_textColor" format="color|reference"/>
  42. <!--输入文字大小-->
  43. <attr name="icl_textSize" format="dimension|reference"/>
  44. <!--有焦点时输入框背景-->
  45. <attr name="icl_focusBackground" format="reference"/>
  46. <!--无焦点时输入框背景-->
  47. <attr name="icl_unFocusBackground" format="reference"/>
  48. <!--显示模式-->
  49. <attr name="icl_showMode">
  50. <enum name="normal" value="0"/><!--正常-->
  51. <enum name="password" value="1"/><!--密码-->
  52. </attr>
  53. <!--输入框显示位置-->
  54. <attr name="android:gravity"/>
  55. </declare-styleable>
  56. <declare-styleable name="CircleImageView">
  57. <attr name="border_width" format="dimension" />
  58. <attr name="border_color" format="color" />
  59. </declare-styleable>
  60. </resources>