我们正在遭受一个非常奇怪的问题与视频寻呼机在这里。我们在每个 ViewPager 页面上嵌入列表,并在更新列表数据时在列表适配器和视图页导航适配器上触发 notifyDataSetChanged。
我们观察到的是,有时,页面不更新其视图树,即保持空白,有时甚至在分页到它时消失。当来回翻页几次时,内容会突然重新出现。似乎 Android 在这里缺少一个视图更新。我还注意到,当使用层次结构查看器进行调试时,选择一个视图总是会让它重新出现,这显然是因为层次结构查看器强制选中的视图重新绘制自己。
但是,我无法以编程方式实现这一点; 使列表视图或整个视图页导航失效没有任何效果。
这与兼容性 -v4 _ r7库是一致的。我还尝试使用最新的修订版,因为它声称可以修复许多与查看页面相关的问题,但它使事情变得更糟(例如,手势被破坏,以至于有时它不再让我浏览所有页面)
还有其他人也遇到这些问题吗,或者你知道是什么引起的吗?