Skip to content

Instantly share code, notes, and snippets.

@SergeyBurlaka
Last active April 9, 2020 17:53
Show Gist options
  • Save SergeyBurlaka/c12e22c4d383b0df1f79a252311f9b9e to your computer and use it in GitHub Desktop.
Save SergeyBurlaka/c12e22c4d383b0df1f79a252311f9b9e to your computer and use it in GitHub Desktop.
Use large, simple controls
https://developer.android.com/guide/topics/ui/accessibility/apps#large-controls
Your app's UI is easier to use if it contains controls that are easier to see and tap.
We recommend that each interactive UI element have a focusable area,
or touch target size, of at least 48dp ✕ 48dp. Larger is even better.
Describe each UI element
<!-- Use string resources for easier localization. -->
<!-- The en-US value for the following string is "Inspect". -->
<ImageView
...
android:contentDescription="@string/inspect" />
Don't include the type of UI element in the content description.
Screen readers automatically announce both the element's description and type.
For example, if selecting a button causes a "submit" action to occur in your app, the button's description should be "Submit", not "Submit button".
If your UI includes graphical elements that are used for decorative effect only,
set their descriptions to "@null". If your app's minSdkVersion is 16 or higher,
you can instead set these graphical elements' android:importantForAccessibility attributes to "no".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment