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.
Accessibility live region - Android Tutorial
From the course: Android App Development: Accessibility
Accessibility live region
- [Instructor] Let's go back to our login screen example and check the behavior of TalkBack when an error message appears. - [TalkBack] Login button. Edit box. Login button. Warning sign error, email is required. Warning sign error, password is required. - [Instructor] The error messages are being automatically announced here, because that's how text input layout was implemented and it gives this behavior for free, while we also have an error outside of the text input layout. Let's take a look. - [TalkBack] Edit box. Showing English, E, E, E, E. Edit box. Showing password, E. Back. Login button, password. - [Instructor] As you can see, we cannot hear the error message automatically when it pops up. To fix this, let's make the text view an accessibility live region. So in Android Studio, under activities, let's open our LoginActivity. Here we have references to our email field, password field and also the error message, so let's make the error message a live region. To do that, we are…
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)
-
-
-