I'm currently using a regular RecyclerView
with GridLayoutManager
with different spanCount
depeding on the viewType
for an Android TV app. All is working decent but I have 2 issues:
- If you long press the dpad down to scroll fast between the items sometimes the focus is lost to a view that isn't a child of the RecyclerView.
- How can I tell the
RecyclerView
to keep the current focused view in the center of the grid?
It seems that the issues listed are fixed by using the VerticalGridView
from LeanBack
library but the LayoutManger
that it uses is internal and doesn't support spanCount
.