Skip to content

Commit 11269ed

Browse files
author
Chris Banes
committed
Add Documenting Comments to Attr xml file
1 parent 94f96ca commit 11269ed

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

library/res/values/attrs.xml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,20 @@
22
<resources>
33

44
<declare-styleable name="PullToRefresh">
5+
6+
<!-- A drawable to use as the background of the Refreshable View -->
57
<attr name="ptrRefreshableViewBackground" format="reference|color" />
8+
9+
<!-- A drawable to use as the background of the Header and Footer Loading Views -->
610
<attr name="ptrHeaderBackground" format="reference|color" />
11+
12+
<!-- Text Color of the Header and Footer Loading Views -->
713
<attr name="ptrHeaderTextColor" format="reference|color" />
14+
15+
<!-- Text Color of the Header and Footer Loading Views Sub Header -->
816
<attr name="ptrHeaderSubTextColor" format="reference|color" />
17+
18+
<!-- Mode of Pull-to-Refresh that should be used -->
919
<attr name="ptrMode">
1020
<flag name="disabled" value="0x0" />
1121
<flag name="pullFromStart" value="0x1" />
@@ -17,21 +27,45 @@
1727
<flag name="pullDownFromTop" value="0x1" />
1828
<flag name="pullUpFromBottom" value="0x2" />
1929
</attr>
30+
31+
<!-- Whether the Indicator overlay(s) should be used -->
2032
<attr name="ptrShowIndicator" format="reference|boolean" />
33+
34+
<!-- Drawable to use as Loading Indicator. Changes both Header and Footer. -->
2135
<attr name="ptrDrawable" format="reference" />
36+
37+
<!-- Drawable to use as Loading Indicator in the Header View. Overrides value set in ptrDrawable. -->
2238
<attr name="ptrDrawableStart" format="reference" />
39+
40+
<!-- Drawable to use as Loading Indicator in the Footer View. Overrides value set in ptrDrawable. -->
2341
<attr name="ptrDrawableEnd" format="reference" />
42+
43+
<!-- Whether Android's built-in Over Scroll should be utilised for Pull-to-Refresh. -->
2444
<attr name="ptrOverScroll" format="reference|boolean" />
45+
46+
<!-- Base text color, typeface, size, and style for Header and Footer Loading Views -->
2547
<attr name="ptrHeaderTextAppearance" format="reference" />
48+
49+
<!-- Base text color, typeface, size, and style for Header and Footer Loading Views Sub Header -->
2650
<attr name="ptrSubHeaderTextAppearance" format="reference" />
51+
52+
<!-- Style of Animation should be used displayed when pulling. -->
2753
<attr name="ptrAnimationStyle">
2854
<flag name="rotate" value="0x0" />
2955
<flag name="flip" value="0x1" />
3056
</attr>
57+
58+
<!-- Whether the user can scroll while the View is Refreshing -->
3159
<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+
-->
3266
<attr name="ptrListViewExtrasEnabled" format="reference|boolean" />
3367

34-
<!-- Deprecated -->
68+
<!-- BELOW HERE ARE DEPRECEATED. DO NOT USE. -->
3569
<attr name="ptrAdapterViewBackground" format="reference|color" />
3670
<attr name="ptrDrawableTop" format="reference" />
3771
<attr name="ptrDrawableBottom" format="reference" />

0 commit comments

Comments
 (0)