Android Programming: The Big Nerd Ranch Guide, 5th Edition
by Bryan Sills, Brian Gardner, Kristin Marsicano, Chris Stewart
Challenge: Improving the List
On the crime list screen, TalkBack reads the title and date of each item. However, it does not indicate whether the crime is solved. Fix this problem by giving the handcuff icon a content description.
Note that the readout is a bit lengthy, given the date format, and that the solved status is read at the very end – or not at all, if the crime is not solved. To take this challenge one step further, instead of having TalkBack read off the contents of the two TextViews and the content description of the icon (if the icon is present), add a dynamic content description to each row in the recycler view. In the description, summarize the data the user sees in the row.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access