attrs.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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="color"/>
  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_drawable" format="reference"/>
  83. <attr name="item_detail_text_drawable_padding" format="dimension"/>
  84. <attr name="item_padding_top" format="dimension"/>
  85. <attr name="item_padding_bottom" format="dimension"/>
  86. <attr name="item_line_margin_start" format="dimension"/>
  87. <attr name="item_line_margin_end" format="dimension"/>
  88. <attr name="item_detail_text_style">
  89. <flag name="normal" value="10" />
  90. <flag name="bold" value="20" />
  91. <flag name="italic" value="30" />
  92. </attr>
  93. <attr name="item_title_text_style">
  94. <flag name="normal" value="10" />
  95. <flag name="bold" value="20" />
  96. <flag name="italic" value="30" />
  97. </attr>
  98. <attr name="item_wrap_style">
  99. <flag name="left" value="10" />
  100. <flag name="center" value="20" />
  101. <flag name="right" value="30" />
  102. </attr>
  103. </declare-styleable>
  104. <declare-styleable name="MaxHeightRecyclerView">
  105. <attr name="maxHeight" format="dimension" />
  106. </declare-styleable>
  107. <declare-styleable name="FlowLayout">
  108. <attr name="horizontalSpacing" format="dimension"/>
  109. <attr name="verticalSpacing" format="dimension"/>
  110. </declare-styleable>
  111. <declare-styleable name="VerifyEditText">
  112. <!--输入框数量-->
  113. <attr name="inputCount" format="integer" />
  114. <!--输入框间距-->
  115. <attr name="inputSpace" format="dimension" />
  116. <!--下划线厚度-->
  117. <attr name="underlineHeight" format="dimension" />
  118. <!--输入框文本大小-->
  119. <attr name="mTextSize" format="dimension" />
  120. <!--下划线选中的颜色-->
  121. <attr name="focusColor" format="color" />
  122. <!--下划线未选中的颜色-->
  123. <attr name="defaultColor" format="color" />
  124. <!--下划线距文本的距离-->
  125. <attr name="underlineSpace" format="dimension" />
  126. <!--光标-->
  127. <attr name="cursorDrawable" format="reference" />
  128. </declare-styleable>
  129. <declare-styleable name="ClearEditText">
  130. <attr name="clear_image" format="reference"/>
  131. </declare-styleable>
  132. <declare-styleable name="EmptyView">
  133. <attr name="empty_image" format="reference"/>
  134. <attr name="empty_text" format="string"/>
  135. <attr name="empty_text_color" format="color"/>
  136. </declare-styleable>
  137. </resources>