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

Accessibility live region - Android Tutorial

From the course: Android App Development: Accessibility

Start my 1-month free trial

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…

Contents