Skip to content

Commit d6761f2

Browse files
nickroutpekingme
authored andcommitted
[Documentation] A11y refresh.
PiperOrigin-RevId: 354530799
1 parent 42df390 commit d6761f2

File tree

2 files changed

+37
-16
lines changed

2 files changed

+37
-16
lines changed

docs/components/ProgressIndicator.md

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ path: /catalog/progress-indicators/
1212
[Progress indicators](https://material.io/components/progress-indicators)
1313
express an unspecified wait time or display the length of a process.
1414

15-
![Progress indicator hero](assets/progressindicator/indeterminate_hero.gif)
15+
![Animation of purple linear progress indicator beneath "My Recipes" top app bar](assets/progressindicator/indeterminate_hero.gif)
1616

1717
**Contents**
1818

@@ -39,7 +39,9 @@ progress rather than the progress of each activity.**_
3939

4040
### Usage
4141

42-
![determinate type composite](assets/progressindicator/determinate_composite.gif)
42+
![Animation of determinate linear and circular progress indicators: purple
43+
indicators fill up grey
44+
tracks](assets/progressindicator/determinate_composite.gif)
4345

4446
A determinate progress indicator can added in a layout like so:
4547

@@ -54,7 +56,9 @@ A determinate progress indicator can added in a layout like so:
5456
android:layout_height="wrap_content" />
5557
```
5658

57-
![indeterminate type composite](assets/progressindicator/indeterminate_composite.gif)
59+
![Animation of indeterminate linear and circular progress indicators: purple
60+
indicators travel along grey
61+
tracks](assets/progressindicator/indeterminate_composite.gif)
5862

5963
An indeterminate progress indicator can be added like so:
6064

@@ -73,7 +77,9 @@ An indeterminate progress indicator can be added like so:
7377

7478
### Switching from indeterminate to determinate
7579

76-
![Switching from indeterminate to determinate](assets/progressindicator/switch_composite.gif)
80+
![Animation of linear and circular progress indicators: purple indicators travel
81+
along gray tracks then fill up
82+
tracks.](assets/progressindicator/switch_composite.gif)
7783

7884
Indeterminate progress indicators can smoothly transit to determinate progress
7985
indicators by setting the `progress` programmatically:
@@ -129,7 +135,8 @@ to set the target visibility as `Visibiltiy.INVISIBLE` (default) or
129135

130136
### Rounded corners
131137

132-
![rounded progress indicators](assets/progressindicator/rounded_corner_composite.png)
138+
![Linear and circular progress indicators: tracks and indicators have rounded
139+
corners](assets/progressindicator/rounded_corner_composite.png)
133140

134141
Progress indicators can have rounded corners via `app:trackCornerRadius` or the
135142
`setTrackCornerRadius` method.
@@ -144,7 +151,7 @@ Only one type should represent each kind of activity in an app. For example, if
144151
a refresh action displays a circular indicator on one screen, that same action
145152
shouldn’t use a linear indicator elsewhere in the app.
146153

147-
![Composite image of progress indicator types](assets/progressindicator/types.gif)
154+
![Composite image of linear and circular progress indicator types](assets/progressindicator/types.gif)
148155

149156
## Linear progress indicators
150157

@@ -166,7 +173,8 @@ Source code:
166173

167174
The following example shows a determinate linear progress indicator.
168175

169-
![determinate linear progress indicator](assets/progressindicator/linear_determinate_compact.gif)
176+
![Determinate linear progress indicator animation: purple indicator fills up
177+
grey track](assets/progressindicator/linear_determinate_compact.gif)
170178

171179
In the layout:
172180

@@ -178,7 +186,8 @@ In the layout:
178186

179187
The following example shows an indeterminate linear progress indicator.
180188

181-
![indeterminate linear progress indicator](assets/progressindicator/linear_indeterminate_compact.gif)
189+
![Indeterminate linear progress indicator animation: purple indicator travels
190+
along grey track](assets/progressindicator/linear_indeterminate_compact.gif)
182191

183192
In the layout:
184193

@@ -193,12 +202,16 @@ In the layout:
193202

194203
For linear progress indicator, there are two indeterminate animation types:
195204

196-
![indeterminate linear progress indicator with disjoint animation](assets/progressindicator/linear_multicolor_disjoint.gif)
205+
![Disjointed indeterminate linear progress indicator animation: red indicator
206+
travels along track 2x then switches to
207+
yellow](assets/progressindicator/linear_multicolor_disjoint.gif)
197208

198209
* `disjoint` - animates as repeated cycles with two disjoint segments in the
199210
same color at a time.
200211

201-
![indeterminate linear progress indicator with contiguous animation](assets/progressindicator/linear_multicolor_contiguous.gif)
212+
![Contiguous indeterminate linear progress indicator animation: red, yellow,
213+
blue indicators move sequentially and cover
214+
track](assets/progressindicator/linear_multicolor_contiguous.gif)
202215

203216
* `contiguous` - animates as repeated cycles with three adjacent segments in
204217
iterative different colors.
@@ -223,7 +236,9 @@ Source code:
223236

224237
The following example shows a determinate circular progress indicator.
225238

226-
![determinate circular progress indicator](assets/progressindicator/circular_determinate_compact.gif)
239+
![Determinate circular progress indicator animation: purple indicator draws a
240+
circle clockwise from the
241+
top](assets/progressindicator/circular_determinate_compact.gif)
227242

228243
In the layout:
229244

@@ -236,7 +251,9 @@ In the layout:
236251

237252
The following example shows an indeterminate circular progress indicator.
238253

239-
![indeterminate circular progress indicator](assets/progressindicator/circular_indeterminate_compact.gif)
254+
![Indeterminate circular progress indicator animation: purple indicator follows
255+
a circle clockwise from the
256+
top](assets/progressindicator/circular_indeterminate_compact.gif)
240257

241258
In the layout:
242259

@@ -301,7 +318,6 @@ Element | Style
301318
**Small circular**<br/>**style** | `Widget.MaterialComponents.CircularProgressIndicator.Small`
302319
**Extra small circular**<br/>**style** | `Widget.MaterialComponents.CircularProgressIndicator.ExtraSmall`
303320

304-
305321
Default linear style theme attribute: `?attr/linearProgressIndicatorStyle`
306322

307323
Default circular style theme attribute: `?attr/circularProgressIndicatorStyle`
@@ -320,7 +336,9 @@ color and size.
320336

321337
The following example shows a circular progress indicator with Material Theming.
322338

323-
!["Circular progress indicator example with pink color."](assets/progressindicator/circular_theming.gif)
339+
!["Circular progress indicator animation: pink circle segment circles center,
340+
then pink circle segment fills
341+
circle"](assets/progressindicator/circular_theming.gif)
324342

325343
#### Implementing progress indicator theming
326344

docs/components/Snackbar.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ path: /catalog/snackbars/
1212
[Snackbars](https://material.io/components/snackbars) provide brief messages
1313
about app processes at the bottom of the screen.
1414

15-
![Snackbars hero image](assets/snackbar/snackbar_hero.png)
15+
![Photo grid: each photo has heart toggle button, 2 selected. Snackbar has
16+
upload error message and 'retry' text
17+
button.](assets/snackbar/snackbar_hero.png)
1618

1719
**Contents**
1820

@@ -219,7 +221,8 @@ The following is an example of a snackbar with an action button that uses the
219221
Material.io [Shrine](https://material.io/design/material-studies/shrine.html)
220222
color theming:
221223

222-
!["Snackbar theming with pink and brown colors"](assets/snackbar/snackbar_theming.png)
224+
!["Snackbar with brown container, pink text, and pink 'Action' text button on
225+
light grey screen"](assets/snackbar/snackbar_theming.png)
223226

224227
#### Implementing snackbar theming
225228

0 commit comments

Comments
 (0)