attrs.xml 3.5 KB

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