Skip to content

Commit 90d4d16

Browse files
committed
Docs: Fix link to images
1 parent d9bd78a commit 90d4d16

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

docs/accessibility-guidelines.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,21 @@ Set contentDescription attribute to all ImageViews (null is a valid value).
88

99
Illustrative images and images with labels should have contentDescription set to null -> “android:contentDescription="@null" or have importantForAccessibility set to “no” -> “android:importantForAccessibility="no".
1010

11-
[[/images/Accessibility/illustrative_img.png|width=300px]]
11+
<img src="images/accessibility-guidelines/illustrative-img.png" width="300">
1212

1313
ImageButtons with labels should have contentDescription set to null. Setting importanceForAccessibility to “no” makes them unfocusable in the accessibility mode.
1414

15-
16-
[[/images/Accessibility/image_with_label.png|width=300px]]
15+
<img src="images/accessibility-guidelines/image-with-label.png" width="300">
1716

1817
### Labels
1918
When a UI element is just a label for another element, set the `labelFor` attribute.
2019

21-
[[/images/Accessibility/label_for.png|width=300px]]
20+
<img src="images/accessibility-guidelines/label-for.png" width="300">
2221

2322
### Grouping content
2423
If users should treat a set of elements as a single unit of information, you can group these elements in a focusable container (use android:focusable=”true”).
2524

26-
[[/images/Accessibility/grouping_content.png|width=300px]]
27-
25+
<img src="images/accessibility-guidelines/grouping-content.png" width="300">
2826

2927
### Custom Views
3028
Make sure that custom views are accessible with both Switch Access and TalkBack. Consider implementing accessibility functionality for them using ExploreByTouchHelper.

docs/right-to-left-layout-guidelines.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ Supporting Right-to-left written scripts is quite straightforward as most issues
66
### Animations and Drawables
77
Whenever you add a new animation/drawable, consider whether it needs to be mirrored in RtL mode (Use `ldrtl` drawable selector - example `drawable-ldrtl-v18`).
88

9-
[[/images/Right-to-left/Left-to-Right_animation.gif|width=300px]]
10-
[[/images/Right-to-left/Right-to-left_animation.gif|width=300px]]
11-
9+
<img src="images/right-to-left-layout-guidelines/left-to-right-animation.gif" width="300">
10+
<img src="images/right-to-left-layout-guidelines/right-to-left-animation.gif" width="300">
1211

1312
### Images/Icons
1413
Writing direction also affects time flow direction -> some asymmetric images/icons, such as `reply` or `back`, need to be mirrored.
@@ -18,7 +17,7 @@ OS automatically mirrors layouts in RtL mode. In rare cases the default text ali
1817

1918
Example: List of posts can contain posts in both English and Hebrew. When the title TextField width is set to wrap_content, everything is handled correctly (see img 1). But if the title TextField width is set to match_parent, the UI can become disarranged (see img 2 -> to fix the issue set the text alignment explicitly to viewStart -> ```android:textAlignment="viewStart"```).
2019

21-
[[/images/Right-to-left/TextAlignment.png|width=600px]]
20+
<img src="images/right-to-left-layout-guidelines/text-alignment.png" width="600">
2221

2322

2423

0 commit comments

Comments
 (0)