其实我目前正在为AndroidTV应用程序工作。我有多个横向RecyclerView
从右到左NestedScrollView
像这样的形象。NestedScrollView内部多个水平RecyclerView窃取焦点
问题是,当我向左滚动更多时,焦点移动到不同的列表或不同的视图,这是不好的。
我不想让焦点改变。如果列表到达最后,那么焦点应该保持在相同的位置。
我想:
android:descendantFocusability="blocksDescendants"
android:focusableInTouchMode="true" //in parent layout
但它没有工作..
谁能帮助我?
没有解决
请尝试下面的解决方案在这[相关SO帖子](https://stackoverflow.com/a/42688298/5995040) –
已经尝试过,但没有帮助@Rebot –
我解决了我的问题与使用android:descendantFocusability = “blocksDescendants”用于滚动视图中的根布局。也使用nestedscrollview而不是scrollview。 – asozcan