Skip to content

Commit e1302ed

Browse files
committed
docs: Accessibility Dev Guide (subsumes Accessibility Best Practices)
Change-Id: Id7e3f647042d2afd390abe851be1c3b561af33ca
1 parent 14958e2 commit e1302ed

File tree

14 files changed

+994
-355
lines changed

14 files changed

+994
-355
lines changed

core/java/android/accessibilityservice/AccessibilityService.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
* etc. Such a service can optionally request the capability for querying the content
3636
* of the active window. Development of an accessibility service requires extending this
3737
* class and implementing its abstract methods.
38+
*
39+
* <div class="special reference">
40+
* <h3>Developer Guides</h3>
41+
* <p>For more information about creating AccessibilityServices, read the
42+
* <a href="{@docRoot}guide/topics/ui/accessibility/index.html">Accessibility</a>
43+
* developer guide.</p>
44+
* </div>
45+
*
3846
* <h3>Lifecycle</h3>
3947
* <p>
4048
* The lifecycle of an accessibility service is managed exclusively by the system and

core/java/android/accessibilityservice/AccessibilityServiceInfo.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@
4141
* {@link AccessibilityService} for {@link android.view.accessibility.AccessibilityEvent}s
4242
* according to the information encapsulated in this class.
4343
*
44+
* <div class="special reference">
45+
* <h3>Developer Guides</h3>
46+
* <p>For more information about creating AccessibilityServices, read the
47+
* <a href="{@docRoot}guide/topics/ui/accessibility/index.html">Accessibility</a>
48+
* developer guide.</p>
49+
* </div>
50+
*
4451
* @see AccessibilityService
4552
* @see android.view.accessibility.AccessibilityEvent
4653
* @see android.view.accessibility.AccessibilityManager

core/java/android/view/View.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14804,6 +14804,12 @@ public void run() {
1480414804
* classes i.e. classes in package android.view, that would like their
1480514805
* applications to be backwards compatible.
1480614806
* </p>
14807+
* <div class="special reference">
14808+
* <h3>Developer Guides</h3>
14809+
* <p>For more information about making applications accessible, read the
14810+
* <a href="{@docRoot}guide/topics/ui/accessibility/index.html">Accessibility</a>
14811+
* developer guide.</p>
14812+
* </div>
1480714813
* <p>
1480814814
* A scenario in which a developer would like to use an accessibility delegate
1480914815
* is overriding a method introduced in a later API version then the minimal API

core/java/android/view/accessibility/AccessibilityEvent.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@
5959
* by this class. For each event type there is a corresponding constant defined
6060
* in this class. Follows a specification of the event types and their associated properties:
6161
* </p>
62+
* <div class="special reference">
63+
* <h3>Developer Guides</h3>
64+
* <p>For more information about creating and processing AccessibilityEvents, read the
65+
* <a href="{@docRoot}guide/topics/ui/accessibility/index.html">Accessibility</a>
66+
* developer guide.</p>
67+
* </div>
6268
* <p>
6369
* <b>VIEW TYPES</b></br>
6470
* </p>

core/java/android/view/accessibility/AccessibilityEventSource.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818

1919
/**
2020
* This interface is implemented by classes source of {@link AccessibilityEvent}s.
21+
*
22+
* <div class="special reference">
23+
* <h3>Developer Guides</h3>
24+
* <p>For more information about making applications accessible, read the
25+
* <a href="{@docRoot}guide/topics/ui/accessibility/index.html">Accessibility</a>
26+
* developer guide.</p>
27+
* </div>
2128
*/
2229
public interface AccessibilityEventSource {
2330

core/java/android/view/accessibility/AccessibilityNodeInfo.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
* details about how to obtain a handle to window content as a tree of accessibility
4444
* node info as well as familiarizing with the security model.
4545
* </p>
46+
* <div class="special reference">
47+
* <h3>Developer Guides</h3>
48+
* <p>For more information about making applications accessible, read the
49+
* <a href="{@docRoot}guide/topics/ui/accessibility/index.html">Accessibility</a>
50+
* developer guide.</p>
51+
* </div>
4652
*
4753
* @see android.accessibilityservice.AccessibilityService
4854
* @see AccessibilityEvent

core/java/android/view/accessibility/AccessibilityRecord.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@
4141
* event types. For detailed information please refer to {@link AccessibilityEvent}.
4242
* </p>
4343
*
44+
* <div class="special reference">
45+
* <h3>Developer Guides</h3>
46+
* <p>For more information about creating and processing AccessibilityRecords, read the
47+
* <a href="{@docRoot}guide/topics/ui/accessibility/index.html">Accessibility</a>
48+
* developer guide.</p>
49+
* </div>
50+
*
4451
* @see AccessibilityEvent
4552
* @see AccessibilityManager
4653
* @see android.accessibilityservice.AccessibilityService

core/java/android/view/accessibility/package.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,12 @@
3535
changes etc. Parties interested in handling accessibility events implement and register an
3636
accessibility service which extends {@link android.accessibilityservice.AccessibilityService}.
3737
</p>
38+
<div class="special reference">
39+
<h3>Developer Guides</h3>
40+
<p>For more information about making applications accessible, read the
41+
<a href="{@docRoot}guide/topics/ui/accessibility/index.html">Accessibility</a>
42+
developer guide.</p>
43+
</div>
44+
3845
</body>
3946
</html>

docs/html/guide/guide_toc.cs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,20 @@ localized titles are added in the language order specified below.
160160
<li><a href="<?cs var:toroot ?>guide/topics/ui/custom-components.html">
161161
<span class="en">Custom Components</span>
162162
</a></li>
163+
<li class="toggle-list">
164+
<div><a href="<?cs var:toroot ?>guide/topics/ui/accessibility/index.html">
165+
<span class="en">Accessibility</span>
166+
<span class="new">new!</span>
167+
</a></div>
168+
<ul>
169+
<li><a href="<?cs var:toroot ?>guide/topics/ui/accessibility/apps.html">
170+
<span class="en">Making Applications Accessible</span>
171+
</a></li>
172+
<li><a href="<?cs var:toroot ?>guide/topics/ui/accessibility/services.html">
173+
<span class="en">Building Accessibility Services</span>
174+
</a></li>
175+
</ul>
176+
</li>
163177
<li><a href="<?cs var:toroot ?>guide/topics/ui/binding.html">
164178
<span class="en">Binding to Data with AdapterView</span>
165179
</a></li>
@@ -835,9 +849,6 @@ localized titles are added in the language order specified below.
835849
</li>
836850
</ul>
837851
<ul>
838-
<li><a href="<?cs var:toroot ?>guide/practices/design/accessibility.html">
839-
<span class="en">Designing for Accessibility</span>
840-
</a></li>
841852
<li class="toggle-list">
842853
<div><a href="<?cs var:toroot ?>guide/practices/design/performance.html">
843854
<span class="en">Designing for Performance</span>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<html>
2+
<head>
3+
<meta http-equiv="refresh"
4+
content="0;url=http://developer.android.com/guide/topics/ui/accessibility/index.html">
5+
<title>Redirecting...</title>
6+
</head>
7+
<body>
8+
<p>You should be redirected. Please <a
9+
href="http://developer.android.com/guide/topics/ui/accessibility/index.html">click here</a>.</p>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)