From the course: Android App Development: Accessibility
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Create unique labels - Android Tutorial
From the course: Android App Development: Accessibility
Create unique labels
- [Instructor] In our example app, let's inspect one case where we could add unique and meaningful labels to buttons. With TalkBack enabled, open our Cards example. - [TalkBack] Cards button. Cards. - [Instructor] Note that the image buttons are currently unlabeled. - [TalkBack] Unlabeled button in list three items. Unlabeled button, unlabeled button, unlabeled button, unlabeled button. Double-tap. - [Instructor] This is really bad. It's a critical problem and you must make sure that you don't have these problems in your app. Also, because we have multiple cards and multiple image buttons, it would not be good to fix this issue by just adding the same content description to all of them. So let's go back to Android Studio and fix these problems. First, let's open the main folder, resources folder, layout folder and open the card_list_item. This is where we declare all the image buttons and as you can see, there is a warning that Android Studio is telling us that this image button is…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
The POUR principle1m 6s
-
(Locked)
Focus navigation3m 25s
-
(Locked)
Update default focus navigation3m 9s
-
(Locked)
Labels, roles, values, and states2m 43s
-
Apply visual attributes to tab layout4m 14s
-
(Locked)
Provide unique and meaningful labels6m 37s
-
(Locked)
Labels for input controls4m 42s
-
(Locked)
Create unique labels7m 45s
-
(Locked)
Handle RecyclerView updates3m 41s
-
(Locked)
Handle Single Activity layouts6m 39s
-
(Locked)
Accessibility events5m 10s
-
(Locked)
Accessibility live region2m 12s
-
(Locked)
Accessibility node info2m 14s
-
(Locked)
Custom views1m 48s
-
(Locked)
-
-
-