|
18 | 18 |
|
19 | 19 | <declare-styleable name="BaseProgressIndicator"> |
20 | 20 | <!-- Whether the progress indicator should be indeterminate mode. --> |
21 | | - <attr name="android:indeterminate"/> |
| 21 | + <attr name="android:indeterminate" /> |
22 | 22 | <!-- The thickness of the progress track and indicator. --> |
23 | | - <attr name="trackThickness" format="dimension"/> |
| 23 | + <attr name="trackThickness" format="dimension" /> |
24 | 24 | <!-- |
25 | 25 | The radius of each corner of both the indicator and the track. A radius |
26 | 26 | larger than half of the track width will throw exceptions during |
27 | 27 | initialization. |
28 | 28 | --> |
29 | | - <attr name="trackCornerRadius" format="dimension"/> |
| 29 | + <attr name="trackCornerRadius" format="dimension" /> |
30 | 30 | <!-- |
31 | 31 | The indicator color (or colors in an array). By default, it uses theme |
32 | 32 | primary color. |
33 | 33 | --> |
34 | | - <attr name="indicatorColor" format="color|reference"/> |
| 34 | + <attr name="indicatorColor" format="color|reference" /> |
35 | 35 | <!-- |
36 | 36 | The color used for the progress track. If not defined, it will be set to |
37 | 37 | the indicatorColor and apply the android:disabledAlpha from the theme. |
38 | 38 | --> |
39 | | - <attr name="trackColor"/> |
| 39 | + <attr name="trackColor" /> |
40 | 40 | <!-- The animation behavior to show the indicator and track. --> |
41 | 41 | <attr name="showAnimationBehavior"> |
42 | 42 | <!-- No animation used; appears immediately. --> |
43 | | - <enum name="none" value="0"/> |
| 43 | + <enum name="none" value="0" /> |
44 | 44 | <!-- |
45 | 45 | Expands from the bottom edge to the top edge for the linear type; |
46 | 46 | expands from the inner edge to the outer edge for the circular type. |
47 | 47 | --> |
48 | | - <enum name="outward" value="1"/> |
| 48 | + <enum name="outward" value="1" /> |
49 | 49 | <!-- |
50 | 50 | Expands from the top edge to the bottom edge for the linear type; |
51 | 51 | expands from the outer edge to the inner edge for the circular type. |
52 | 52 | --> |
53 | | - <enum name="inward" value="2"/> |
| 53 | + <enum name="inward" value="2" /> |
54 | 54 | </attr> |
55 | 55 | <!-- The animation behavior to hide the indicator and track. --> |
56 | 56 | <attr name="hideAnimationBehavior"> |
57 | 57 | <!-- No animation used; disappears immediately. --> |
58 | | - <enum name="none" value="0"/> |
| 58 | + <enum name="none" value="0" /> |
59 | 59 | <!-- |
60 | 60 | Collapses from the bottom edge to the top edge for the linear type; |
61 | 61 | collapses from the inner edge to the outer edge for the circular type. |
62 | 62 | --> |
63 | | - <enum name="outward" value="1"/> |
| 63 | + <enum name="outward" value="1" /> |
64 | 64 | <!-- |
65 | 65 | Collapses from the top edge to the bottom edge for the linear type; |
66 | 66 | collapses from the outer edge to the inner edge for the circular type. |
67 | 67 | --> |
68 | | - <enum name="inward" value="2"/> |
| 68 | + <enum name="inward" value="2" /> |
69 | 69 | <!-- |
70 | 70 | Escapes in the progression direction for the linear type; |
71 | 71 | no effect for the circular type. |
72 | 72 | --> |
73 | | - <enum name="escape" value="3"/> |
| 73 | + <enum name="escape" value="3" /> |
74 | 74 | </attr> |
75 | 75 | <!-- |
76 | 76 | The time, in milliseconds, that the progress indicator will wait to show |
77 | 77 | once show() is called. If set to zero or negative values (-1 as default), |
78 | 78 | the show action will start immediately. |
79 | 79 | --> |
80 | | - <attr name="showDelay" format="integer"/> |
| 80 | + <attr name="showDelay" format="integer" /> |
81 | 81 | <!-- |
82 | 82 | The minimum time, in milliseconds, that the requested hide action will |
83 | 83 | wait to start once show action is started. If set to zero or negative |
84 | 84 | values (-1 as default), the requested hide action will start immediately. |
85 | 85 | This value is capped to a limit defined in ProgressIndicator class. |
86 | 86 | --> |
87 | | - <attr name="minHideDelay" format="integer"/> |
| 87 | + <attr name="minHideDelay" format="integer" /> |
88 | 88 | <!-- |
89 | 89 | The size of the gap between the progress indicator and track. |
90 | 90 | --> |
91 | | - <attr name="indicatorTrackGapSize" format="dimension"/> |
| 91 | + <attr name="indicatorTrackGapSize" format="dimension" /> |
92 | 92 | <!-- |
93 | 93 | Defines the wavelength (in dp) of the wave effect. |
94 | 94 | --> |
95 | | - <attr name="wavelength" format="dimension"/> |
| 95 | + <attr name="wavelength" format="dimension" /> |
96 | 96 | <!-- |
97 | 97 | Defines the amplitude (in dp) of the wave effect. |
98 | 98 | --> |
99 | | - <attr name="amplitude" format="dimension"/> |
| 99 | + <attr name="amplitude" format="dimension" /> |
100 | 100 | <!-- |
101 | 101 | Defines the wave speed (in dp/s) of the wavy effect. If positive, wave moves towards 100%; if |
102 | 102 | negative, wave moves towards 0%. |
103 | 103 | --> |
104 | | - <attr name="speed" format="dimension"/> |
| 104 | + <attr name="speed" format="dimension" /> |
105 | 105 | </declare-styleable> |
106 | 106 |
|
107 | 107 | <declare-styleable name="LinearProgressIndicator"> |
|
112 | 112 | This type is only available when there are three or more indicator |
113 | 113 | colors. |
114 | 114 | --> |
115 | | - <enum name="contiguous" value="0"/> |
| 115 | + <enum name="contiguous" value="0" /> |
116 | 116 | <!-- |
117 | 117 | There will be two disjoint segments in the same color per cycle. The color iterates between cycles. |
118 | 118 | --> |
119 | | - <enum name="disjoint" value="1"/> |
| 119 | + <enum name="disjoint" value="1" /> |
120 | 120 | </attr> |
121 | 121 | <!-- |
122 | 122 | The direction in which the linear indicator progresses, in the determinate |
123 | 123 | mode, and is animated, in the indeterminate mode. |
124 | 124 | --> |
125 | 125 | <attr name="indicatorDirectionLinear"> |
126 | 126 | <!-- Animated from the left end to the right end of the track. --> |
127 | | - <enum name="leftToRight" value="0"/> |
| 127 | + <enum name="leftToRight" value="0" /> |
128 | 128 | <!-- Animated from the right end to the left end of the track. --> |
129 | | - <enum name="rightToLeft" value="1"/> |
| 129 | + <enum name="rightToLeft" value="1" /> |
130 | 130 | <!-- |
131 | 131 | Animated from the start position to the end position of the track. |
132 | 132 | This will be same as the leftToRight for API before 17. |
133 | 133 | --> |
134 | | - <enum name="startToEnd" value="2"/> |
| 134 | + <enum name="startToEnd" value="2" /> |
135 | 135 | <!-- |
136 | 136 | Animated from the end position to the start position of the track. |
137 | 137 | This will be same as the rightToLeft for API before 17. |
138 | 138 | --> |
139 | | - <enum name="endToStart" value="3"/> |
| 139 | + <enum name="endToStart" value="3" /> |
140 | 140 | </attr> |
141 | 141 | <!-- |
142 | 142 | The size of the stop indicator at the end of the progress track. |
143 | 143 | --> |
144 | | - <attr name="trackStopIndicatorSize"/> |
| 144 | + <attr name="trackStopIndicatorSize" /> |
145 | 145 | </declare-styleable> |
146 | 146 |
|
147 | 147 | <declare-styleable name="CircularProgressIndicator"> |
| 148 | + <!-- Whether to show the track in the indeterminate mode. --> |
| 149 | + <attr name="indeterminateTrackVisible" format="boolean" /> |
148 | 150 | <!-- The animation style of the indeterminate mode. --> |
149 | 151 | <attr name="indeterminateAnimationTypeCircular"> |
150 | | - <!-- The active track will grow on the end point and shrink on the start point. --> |
151 | | - <enum name="advance" value="0"/> |
152 | | - <!-- The active track will grow and shrink on the end point. --> |
153 | | - <enum name="retreat" value="1"/> |
| 152 | + <!-- The indicator will grow on the end point and shrink on the start point. --> |
| 153 | + <enum name="advance" value="0" /> |
| 154 | + <!-- The indicator track will grow and shrink on the end point. --> |
| 155 | + <enum name="retreat" value="1" /> |
154 | 156 | </attr> |
155 | 157 | <!-- |
156 | 158 | Defines the size (outer diameter) of the circular progress indicator. |
157 | 159 | --> |
158 | | - <attr name="indicatorSize" format="dimension"/> |
| 160 | + <attr name="indicatorSize" format="dimension" /> |
159 | 161 | <!-- |
160 | 162 | The extra space from the outer edge of the indicator to the edge of the |
161 | 163 | canvas. |
162 | 164 | --> |
163 | | - <attr name="indicatorInset" format="dimension"/> |
| 165 | + <attr name="indicatorInset" format="dimension" /> |
164 | 166 | <!-- |
165 | 167 | The direction in which the circular indicator progresses, in the |
166 | 168 | determinate mode, and is animated, in the indeterminate mode. |
|
171 | 173 | determinate mode, the indicator will progress from the top (12 o'clock) |
172 | 174 | clockwise. |
173 | 175 | --> |
174 | | - <enum name="clockwise" value="0"/> |
| 176 | + <enum name="clockwise" value="0" /> |
175 | 177 | <!-- |
176 | 178 | In the indeterminate mode, the spinner will spin counter-clockwise; in |
177 | 179 | the determinate mode, the indicator will progress from the top (12 |
178 | 180 | o'clock) counter-clockwise. |
179 | 181 | --> |
180 | | - <enum name="counterclockwise" value="1"/> |
| 182 | + <enum name="counterclockwise" value="1" /> |
181 | 183 | </attr> |
182 | 184 | </declare-styleable> |
183 | 185 |
|
184 | 186 | <!-- Style to use for LinearProgressIndicator in this theme. --> |
185 | | - <attr name="linearProgressIndicatorStyle" format="reference"/> |
| 187 | + <attr name="linearProgressIndicatorStyle" format="reference" /> |
186 | 188 | <!-- Style to use for CircularProgressIndicator in this theme. --> |
187 | | - <attr name="circularProgressIndicatorStyle" format="reference"/> |
| 189 | + <attr name="circularProgressIndicatorStyle" format="reference" /> |
188 | 190 | </resources> |
0 commit comments