attrs.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <resources>
  3. <declare-styleable name="MyTitleView">
  4. <attr name="title_bg_color" format="color"/>
  5. <attr name="title_text_color" format="color"/>
  6. <attr name="title_text" format="string"/>
  7. <attr name="title_right_text" format="string"/>
  8. <attr name="left_image" format="reference"/>
  9. <attr name="right_image" format="reference"/>
  10. <attr name="center_image" format="reference"/>
  11. <attr name="title_right_text_color" format="color"/>
  12. <attr name="title_right_text_size" format="dimension"/>
  13. <attr name="title_text_gravity">
  14. <flag name="left" value="0" />
  15. <flag name="center" value="1" />
  16. </attr>
  17. </declare-styleable>
  18. <declare-styleable name="SwitchView">
  19. <attr name="switch_text" format="string"/>
  20. <attr name="switch_text_color" format="color"/>
  21. <attr name="switch_line_show" format="boolean"/>
  22. <attr name="switch_clickable" format="boolean"/>
  23. </declare-styleable>
  24. <declare-styleable name="TitleEditView">
  25. <attr name="edit_title" format="string"/>
  26. <attr name="edit_hint_text" format="string"/>
  27. <attr name="edit_input_icon" format="reference"/>
  28. <attr name="edit_input_required" format="boolean"/>
  29. <attr name="edit_input_bg" format="reference"/>
  30. <attr name="edit_input_focusable" format="boolean"/>
  31. <attr name="edit_input_type">
  32. <flag name="password" value="10" />
  33. <flag name="number" value="20" />
  34. <flag name="text" value="30" />
  35. </attr>
  36. </declare-styleable>
  37. <declare-styleable name="AreaCodeEditView">
  38. <attr name="edit_area_title" format="string"/>
  39. <attr name="edit_area_hint_text" format="string"/>
  40. <attr name="edit_area_code" format="string"/>
  41. <attr name="edit_area_input_required" format="boolean"/>
  42. <attr name="edit_area_flag_icon" format="reference"/>
  43. <attr name="edit_area_input_bg" format="reference"/>
  44. </declare-styleable>
  45. <declare-styleable name="UpLoadImageView">
  46. <attr name="load_bg" format="reference"/>
  47. <attr name="load_icon" format="reference"/>
  48. <attr name="load_text" format="string"/>
  49. </declare-styleable>
  50. <declare-styleable name="PasswordEditText">
  51. <!--密码个数-->
  52. <attr name="passwordNumber" format="integer"/>
  53. <!--密码原点的半径-->
  54. <attr name="passwordRadius" format="dimension"/>
  55. <!--密码原点的颜色-->
  56. <attr name="passwordColor" format="color"/>
  57. <!--分割线的颜色-->
  58. <attr name="divisionLineColor" format="color"/>
  59. <!--分割线的大小 指宽度-->
  60. <attr name="divisionLineSize" format="dimension"/>
  61. <!--背景边框的颜色-->
  62. <attr name="bgColor" format="color"/>
  63. <!--背景边框的大小-->
  64. <attr name="bgSize" format="dimension"/>
  65. <!--背景边框的圆角大小-->
  66. <attr name="bgCorner" format="dimension"/>
  67. </declare-styleable>
  68. <declare-styleable name="CommonUserItemView">
  69. <attr name="item_left_image_bg" format="reference"/>
  70. <attr name="item_right_image_bg" format="reference"/>
  71. <attr name="item_line_bg" format="reference"/>
  72. <attr name="item_left_image_show" format="boolean"/>
  73. <attr name="item_right_image_show" format="boolean"/>
  74. <attr name="item_line_show" format="boolean"/>
  75. <attr name="item_title_text" format="string"/>
  76. <attr name="item_detail_text" format="string"/>
  77. <attr name="item_title_text_color" format="color"/>
  78. <attr name="item_detail_text_color" format="color"/>
  79. <attr name="item_line_height" format="dimension"/>
  80. <attr name="item_title_text_size" format="dimension"/>
  81. <attr name="item_detail_text_size" format="dimension"/>
  82. <attr name="item_detail_text_style">
  83. <flag name="normal" value="10" />
  84. <flag name="bold" value="20" />
  85. <flag name="italic" value="30" />
  86. </attr>
  87. </declare-styleable>
  88. <declare-styleable name="MaxHeightRecyclerView">
  89. <attr name="maxHeight" format="dimension" />
  90. </declare-styleable>
  91. <declare-styleable name="FlowLayout">
  92. <attr name="horizontalSpacing" format="dimension"/>
  93. <attr name="verticalSpacing" format="dimension"/>
  94. </declare-styleable>
  95. <declare-styleable name="VerifyEditText">
  96. <!--输入框数量-->
  97. <attr name="inputCount" format="integer" />
  98. <!--输入框间距-->
  99. <attr name="inputSpace" format="dimension" />
  100. <!--下划线厚度-->
  101. <attr name="underlineHeight" format="dimension" />
  102. <!--输入框文本大小-->
  103. <attr name="mTextSize" format="dimension" />
  104. <!--下划线选中的颜色-->
  105. <attr name="focusColor" format="color" />
  106. <!--下划线未选中的颜色-->
  107. <attr name="defaultColor" format="color" />
  108. <!--下划线距文本的距离-->
  109. <attr name="underlineSpace" format="dimension" />
  110. <!--光标-->
  111. <attr name="cursorDrawable" format="reference" />
  112. </declare-styleable>
  113. <declare-styleable name="ClearEditText">
  114. <attr name="clear_image" format="reference"/>
  115. </declare-styleable>
  116. <declare-styleable name="EmptyView">
  117. <attr name="empty_image" format="reference"/>
  118. <attr name="empty_text" format="string"/>
  119. <attr name="empty_text_color" format="color"/>
  120. </declare-styleable>
  121. </resources>