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