TalkBack可访问性StaggeredGridLayoutManager错误的焦点顺序

问题描述 投票:0回答:1

因此,我正在尝试通过“话语提示”功能访问我的应用。我正在尝试使用布局管理器StaggeredGridLayoutManager(Staggered GridView)在RecyclerView中查看22个项目,并且我希望焦点会像项目的位置一样按顺序排列。

预期示例-

 | 1 | 2 |
 | 3 | 4 |
 | 5 | 6 |
 | 7 | 8 |

...

但实际顺序是

1,2,3,4,6,7,8,9,11,10,12,19,20,21,22https://github.com/YoniBagi/StaggeredGridForAccessibility/blob/master/accessibility.gif

现在这里有两个问题:

  1. 它不按照位置顺序移动。
  2. 出于第12项的某种原因,它跳到第19项,并跳过介于两者之间的那些。

任何解决方案或想法都将不胜感激。

代码:https://github.com/YoniBagi/StaggeredGridForAccessibility/tree/master

android android-layout accessibility talkback staggeredgridlayoutmanager
1个回答
0
投票

我找到了一种解决方案,并在媒介中写了一篇文章

link to solution

祝你好运!

© www.soinside.com 2019 - 2024. All rights reserved.