Closed Bug 1179874 Opened 9 years ago Closed 9 years ago

Ensure new views using RecyclerView are accessible

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcomella, Unassigned)

References

Details

Marco raised concerns on mobile-firefox-dev [1] to ensure RecyclerView is accessible - let's test with TalkBack and find out!

[1]: https://mail.mozilla.org/pipermail/mobile-firefox-dev/2015-June/001259.html
(More of a personal note)

I've been playing with Tallback and a RecyclerView test app, which seems to work fine. Settings the content description can be done in the onBindViewHolder method of a RecyclerView.Adapter.

After you bind the item, we can set the description like so:
```
public void onBindViewHolder(ViewHolder holder, final int position) {
    holder.getTitle().setContentDescription("Title is " + mList.get(position).getTitle());
}
```
This is sort of done since we know that accessibility works with RecyclerViews. What's the steps needed to close this?
Flags: needinfo?(michael.l.comella)
Did you try this out on a RecyclerView in Firefox? If so, feel free to close.
Flags: needinfo?(michael.l.comella) → needinfo?(jalmeida)
Compared the SearchEngineBar which is using the RecyclerView in nightly and a TwoWayView in Beta, and Talkback interacts the same (correct) way.

Closing..
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(jalmeida)
Resolution: --- → FIXED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.