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.
Update default focus navigation - Android Tutorial
From the course: Android App Development: Accessibility
Update default focus navigation
- [Instructor] Let's explore the focus navigation of our sample web. But, first, make sure to connect a Bluetooth keyboard to your device. If you are using the emulator, you can use your computer keyboard to test it, but just make sure that first you go to Tools, AVD Manager and when you create your device, you go to the Show Advanced Settings and under Keyboard, make sure that Enable keyboard input is checked. Our example app is already navigable using a keyboard. This is because I'm using native components and they already implement support for focused navigation. Note, however, that the focus indicator is not that strong. This is part of the material design styles and this is, in fact, an accessibility problem since the focus indicator should be highly visible. There are two ways to override this. First, you can provide your own custom indicator. To do that, you need to create two drawables. In Android Studio, go to the drawables folder and notice that we already have these two…
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)
-
-
-