Rules for XML Layouts
Learn more about the accessibility rules supported within axe DevTools for Android. Below you'll find brief descriptions of each rule along with the link to the original guidelines. Rules come from two sources:
- WCAG Success Criterion
- Best Practice - defined by Accessibility Experts at Deque
In the navigation bar under Rules & Remediation for XML Layouts, you'll find detailed information on each rule, including resolution tips. View this guide for impact rating and descriptions. Some rules will be marked with an experimental badge. Learn more about experimental rules and how you can help improve them.
Throughout our rules documentation, you'll find references to Name
, Role
, and Value
. Please refer to WCAG's definitions.
Rule Overview
The Color Contrast rule uses a trained computer vision algorithm. This type of rule will only show results from views rendered on the screen at the time of the scan.
Rule & Description | Guidelines | Impact | |
---|---|---|---|
Active View Name | Active View Name |
WCAG 2.0 - 4.1.2 A | Critical |
CheckBox Name | CheckBox Name |
WCAG 2.0 - 1.3.1 A | Serious |
Color Contrast | Color Contrast |
WCAG 2.0 - 1.4.3 AA | Serious |
Edit Text Name | Edit Text Name |
WCAG 2.0 - 1.3.1 A | Serious |
Edit Text Value | Edit Text Value |
WCAG 2.0 - 4.1.2 A | Critical |
Focusable Text | Focusable Text |
WCAG 2.0 - 1.3.2 A | Critical |
Hidden Active View Focus | Hidden Active View Focus |
WCAG 2.0 - 2.4.3 A | Critical |
Hidden Informative View Focus | Hidden Informative View Focus |
WCAG 2.0 - 1.3.2 A | Critical |
ImageView Name | ImageView Name |
WCAG 2.0 - 1.1.1 A | Critical |
Inactive Accessible View | Inactive Accessible View |
WCAG 2.0 - 4.1.2 A | Critical |
Label In Name | Label In Name |
WCAG 2.1 - 2.5.3 A | Serious |
Nested Active Control | Nested Active Control |
WCAG 2.0 - 2.1.1 A | Critical |
Nested Element Name | Nested Element Name |
WCAG 2.0 - 1.3.2 A | Critical |
Screen Orientation | Screen Orientation |
WCAG 2.1 - 1.3.4 AA | Serious |
Screen Title | Screen Title |
WCAG 2.0 - 2.4.2 A | Moderate |
Switch Name | Switch Name |
WCAG 2.0 - 1.3.1 A | Critical |
Touch Target Size | Touch Target Size |
WCAG 2.1 - 2.5.5 AAA | Moderate |
Touch Target Spacing | Touch Target Spacing |
WCAG 2.2 - 2.5.8 AA | Moderate |