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.
Handle Single Activity layouts - Android Tutorial
From the course: Android App Development: Accessibility
Handle Single Activity layouts
- [Instructor] One common pattern that a lot of developers use on Android is to avoid creating too many activities and rely on managing multiple fragments inside a single activity. However, this creates a problem for accessibility services. Let's take a look at the single activity example in our app. With TalkBack enabled, go ahead and select the Single Activity button. - [Phone Voice] Single Activity button. Single Activity. - [Instructor] When I select an item in this list, a detail view will open. - [Phone Voice] Option 4 and list 20 items. - [Instructor] Note that I can still navigate to the items behind this fragment overlay. - [Phone Voice] Option 3, Option 2, double-tap to activate. - [Instructor] The reason why it behaves like that is because fragments were originally created to support larger screens such as tablets in a multi-pin UI environment, where you would have, for example, a ListView on the left and the DetailView on the right. E-mail apps are examples of this…
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)
-
-
-