From the course: Android App Development: Accessibility
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
Communicating meaningful error messages - Android Tutorial
From the course: Android App Development: Accessibility
Communicating meaningful error messages
- [Instructor] Let's jump to our sample app where we can see some problems in practice. Open the login screen. In this login screen, the email address and the password are required fields. In this case, it is obvious that you need to provide both information for a login screen since it's a very common pattern. But if there were more fields in this case, it would make more sense to add an asterisk or the required text to the label. For this example, let's focus on the error messages. As you can see, we have an email address and a password, and if we tap login, we will see the error messages showing up. Right now, we only indicate that this is an error message by using the red color alone. We could improve this interaction by adding the error text in front of them. So let's go to Android Studio, and under the resources folder, go to values and then strings.xml file. At the very top, we have the "Login" section and the strings that it uses. At the very bottom, we have the error messages,…
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
-
-
-
-
Introduction to universal design4m 2s
-
(Locked)
Universal design examples1m 48s
-
(Locked)
Clear hierarchy of information2m 10s
-
(Locked)
Text and color contrast1m 16s
-
(Locked)
Touch target size: Checkbox3m 13s
-
(Locked)
Touch target size: Image button3m 15s
-
(Locked)
Communicating meaningful information2m 52s
-
(Locked)
Communicating meaningful error messages3m 20s
-
(Locked)
Communicating meaningful toggle buttons3m 41s
-
(Locked)
Alternatives to different actions4m 40s
-
-
-
-
-