attrs.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <resources>
  3. <declare-styleable name="CircularProgress">
  4. <attr name="circular_progress_color" format="color"/>
  5. <attr name="circular_progress_size" format="enum">
  6. <enum name="Small" value="0"/>
  7. <enum name="Normal" value="1"/>
  8. <enum name="Large" value="2"/>
  9. </attr>
  10. <attr name="circular_progress_border_width" format="dimension"/>
  11. <attr name="circular_progress_indeterminate" format="boolean"/>
  12. <attr name="circular_progress_max" format="integer"/>
  13. <attr name="circular_progress_duration" format="integer"/>
  14. </declare-styleable>
  15. <declare-styleable name="SwipeBackLayout">
  16. <attr name="edge_size" format="dimension"/>
  17. <attr name="edge_flag">
  18. <enum name="left" value="0" />
  19. <enum name="right" value="1" />
  20. <enum name="bottom" value="2" />
  21. <enum name="all" value="3" />
  22. </attr>
  23. <attr name="shadow_left" format="reference"/>
  24. <attr name="shadow_right" format="reference"/>
  25. <attr name="shadow_bottom" format="reference"/>
  26. </declare-styleable>
  27. <attr name="SwipeBackLayoutStyle" format="reference"/>
  28. <declare-styleable name="PullToRefresh">
  29. <!-- A drawable to use as the background of the Refreshable View -->
  30. <attr name="ptrRefreshableViewBackground" format="reference|color" />
  31. <!-- A drawable to use as the background of the Header and Footer Loading Views -->
  32. <attr name="ptrHeaderBackground" format="reference|color" />
  33. <!-- Text Color of the Header and Footer Loading Views -->
  34. <attr name="ptrHeaderTextColor" format="reference|color" />
  35. <!-- Text Color of the Header and Footer Loading Views Sub Header -->
  36. <attr name="ptrHeaderSubTextColor" format="reference|color" />
  37. <!-- Mode of Pull-to-Refresh that should be used -->
  38. <attr name="ptrMode">
  39. <flag name="disabled" value="0x0" />
  40. <flag name="pullFromStart" value="0x1" />
  41. <flag name="pullFromEnd" value="0x2" />
  42. <flag name="both" value="0x3" />
  43. <flag name="manualOnly" value="0x4" />
  44. <!-- These last two are depreacted -->
  45. <flag name="pullDownFromTop" value="0x1" />
  46. <flag name="pullUpFromBottom" value="0x2" />
  47. </attr>
  48. <!-- Whether the Indicator overlay(s) should be used -->
  49. <attr name="ptrShowIndicator" format="reference|boolean" />
  50. <!-- Drawable to use as Loading Indicator. Changes both Header and Footer. -->
  51. <attr name="ptrDrawable" format="reference" />
  52. <!-- Drawable to use as Loading Indicator in the Header View. Overrides value set in ptrDrawable. -->
  53. <attr name="ptrDrawableStart" format="reference" />
  54. <!-- Drawable to use as Loading Indicator in the Footer View. Overrides value set in ptrDrawable. -->
  55. <attr name="ptrDrawableEnd" format="reference" />
  56. <!-- Whether Android's built-in Over Scroll should be utilised for Pull-to-Refresh. -->
  57. <attr name="ptrOverScroll" format="reference|boolean" />
  58. <!-- Base text color, typeface, size, and style for Header and Footer Loading Views -->
  59. <attr name="ptrHeaderTextAppearance" format="reference" />
  60. <!-- Base text color, typeface, size, and style for Header and Footer Loading Views Sub Header -->
  61. <attr name="ptrSubHeaderTextAppearance" format="reference" />
  62. <!-- Style of Animation should be used displayed when pulling. -->
  63. <attr name="ptrAnimationStyle">
  64. <flag name="rotate" value="0x0" />
  65. <flag name="flip" value="0x1" />
  66. </attr>
  67. <!-- Whether the user can scroll while the View is Refreshing -->
  68. <attr name="ptrScrollingWhileRefreshingEnabled" format="reference|boolean" />
  69. <!--
  70. Whether PullToRefreshListView has it's extras enabled. This allows the user to be
  71. able to scroll while refreshing, and behaves better. It acheives this by adding
  72. Header and/or Footer Views to the ListView.
  73. -->
  74. <attr name="ptrListViewExtrasEnabled" format="reference|boolean" />
  75. <!--
  76. Whether the Drawable should be continually rotated as you pull. This only
  77. takes effect when using the 'Rotate' Animation Style.
  78. -->
  79. <attr name="ptrRotateDrawableWhilePulling" format="reference|boolean" />
  80. <!-- BELOW HERE ARE DEPRECEATED. DO NOT USE. -->
  81. <attr name="ptrAdapterViewBackground" format="reference|color" />
  82. <attr name="ptrDrawableTop" format="reference" />
  83. <attr name="ptrDrawableBottom" format="reference" />
  84. </declare-styleable>
  85. </resources>