attrs.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <resources>
  3. <declare-styleable name="RangeSeekBar">
  4. <!--RangeSeekBar common attrs-->
  5. <!--The maximum-->
  6. <attr name="rsb_max" format="float"/>
  7. <!--The minimum-->
  8. <attr name="rsb_min" format="float"/>
  9. <!--RangeSeekBar mode, single is normal seekBar, range is RangeSeekBar-->
  10. <attr name="rsb_mode" format="enum">
  11. <enum name="single" value="1"/>
  12. <enum name="range" value="2"/>
  13. </attr>
  14. <!--RangeSeekBar gravity-->
  15. <attr name="rsb_gravity" format="enum">
  16. <enum name="top" value="0"/>
  17. <enum name="bottom" value="1"/>
  18. <enum name="center" value="2"/>
  19. </attr>
  20. <!--The min interval of the thumbs -->
  21. <attr name="rsb_min_interval" format="float"/>
  22. <!-- 0 for the normal mode, greater than 1 to switch to scale mode-->
  23. <attr name="rsb_tick_mark_number" format="integer"/>
  24. <!--Scale mode
  25. Number according to the scale of the actual proportion of the distribution of the location (markTextArray must be a number)
  26. Other bisects the current layout (markTextArray can be any character)
  27. -->
  28. <attr name="rsb_tick_mark_mode" format="enum">
  29. <enum name="number" value="0"/>
  30. <enum name="other" value="1"/>
  31. </attr>
  32. <!--The tick mark text gravity -->
  33. <attr name="rsb_tick_mark_gravity" format="enum">
  34. <enum name="left" value="0"/>
  35. <enum name="center" value="1"/>
  36. <enum name="right" value="2"/>
  37. </attr>
  38. <!--The tick mark text layout gravity -->
  39. <attr name="rsb_tick_mark_layout_gravity" format="enum">
  40. <enum name="top" value="0"/>
  41. <enum name="bottom" value="1"/>
  42. </attr>
  43. <!--The tick mark text array -->
  44. <attr name="rsb_tick_mark_text_array" format="reference"/>
  45. <!--The tick mark text margin bottom to progress -->
  46. <attr name="rsb_tick_mark_text_margin" format="dimension" />
  47. <attr name="rsb_tick_mark_text_size" format="dimension" />
  48. <attr name="rsb_tick_mark_text_color" format="color" />
  49. <!--it just work in range && number mode now-->
  50. <attr name="rsb_tick_mark_in_range_text_color" format="color" />
  51. <attr name="rsb_progress_height" format="dimension"/>
  52. <attr name="rsb_progress_radius" format="dimension"/>
  53. <!--the color of progress bar when in progress-->
  54. <attr name="rsb_progress_color" format="color"/>
  55. <!--the default color of the progress bar-->
  56. <attr name="rsb_progress_default_color" format="color"/>
  57. <attr name="rsb_progress_drawable" format="reference"/>
  58. <attr name="rsb_progress_drawable_default" format="reference"/>
  59. <!--SeekBar attrs-->
  60. <attr name="rsb_indicator_show_mode" format="enum">
  61. <enum name="showWhenTouch" value="0"/>
  62. <enum name="alwaysHide" value="1"/>
  63. <enum name="alwaysShowAfterTouch" value="2"/>
  64. <enum name="alwaysShow" value="3"/>
  65. </attr>
  66. <attr name="rsb_indicator_height" format="dimension" >
  67. <enum name="wrap_content" value="-1" />
  68. </attr>
  69. <attr name="rsb_indicator_width" format="dimension" >
  70. <enum name="wrap_content" value="-1" />
  71. </attr>
  72. <!--indicator margin bottom to progress bar-->
  73. <attr name="rsb_indicator_margin" format="dimension" />
  74. <attr name="rsb_indicator_text_size" format="dimension" />
  75. <attr name="rsb_indicator_text_color" format="color" />
  76. <!--indicator arrow size, it just work when you not use rsb_indicator_drawable -->
  77. <attr name="rsb_indicator_arrow_size" format="dimension" />
  78. <!-- must use 9 path !!!-->
  79. <attr name="rsb_indicator_drawable" format="reference"/>
  80. <attr name="rsb_indicator_background_color" format="color" />
  81. <attr name="rsb_indicator_padding_left" format="dimension" />
  82. <attr name="rsb_indicator_padding_right" format="dimension" />
  83. <attr name="rsb_indicator_padding_top" format="dimension" />
  84. <attr name="rsb_indicator_padding_bottom" format="dimension" />
  85. <attr name="rsb_indicator_radius" format="dimension" />
  86. <attr name="rsb_thumb_drawable" format="reference"/>
  87. <!--the thumb inactivated is when you don't touch the thumb button-->
  88. <attr name="rsb_thumb_inactivated_drawable" format="reference"/>
  89. <attr name="rsb_thumb_width" format="dimension"/>
  90. <attr name="rsb_thumb_height" format="dimension"/>
  91. <attr name="rsb_thumb_scale_ratio" format="float"/>
  92. <!--steps SeekBar-->
  93. <attr name="rsb_steps" format="integer"/>
  94. <attr name="rsb_step_color" format="color"/>
  95. <attr name="rsb_step_width" format="dimension"/>
  96. <attr name="rsb_step_height" format="dimension"/>
  97. <attr name="rsb_step_radius" format="dimension"/>
  98. <attr name="rsb_step_auto_bonding" format="boolean"/>
  99. <attr name="rsb_step_drawable" format="reference"/>
  100. </declare-styleable>
  101. <declare-styleable name="VerticalRangeSeekBar" >
  102. <!--the vertical RangeSeekBar draw orientation-->
  103. <attr name="rsb_orientation" format="enum">
  104. <enum name="left" value="1"/>
  105. <enum name="right" value="2"/>
  106. </attr>
  107. <attr name="rsb_tick_mark_orientation" format="enum">
  108. <enum name="vertical" value="1"/>
  109. <enum name="horizontal" value="2"/>
  110. </attr>
  111. <attr name="rsb_indicator_text_orientation" format="enum">
  112. <enum name="vertical" value="1"/>
  113. <enum name="horizontal" value="2"/>
  114. </attr>
  115. </declare-styleable>
  116. </resources>