Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Can I transfer focus to a specific RecyclerView item when the focus enters the RecyclerView?
Post Flair (click to view more posts with a particular flair)
Post Body

Hi there, I'm making an app for TV so there's no touch interface but just the remote control with directional pad and some keys.
When I move focus to a recyclerview, the focused item is the one that is closest to the element the focus came from, and I would like for it to be the same element I left the recyclerview from.

I tried setting the "focusable" property of the recyclerview to true and, on the "FocusChanged" event call the corresponding view's "RequestFocus", but the event never fires and instead the focus goes straight to the nearest item.

Any idea on how to catch the focus with the recyclerview itself before it gets transferred to the items?
Thanks in advance..

I'm working on Xamarin Android, not Forms.

Author
Account Strength
90%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
3,310
Link Karma
660
Comment Karma
2,564
Profile updated: 3 days ago
Posts updated: 3 weeks ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago