【问题标题】:Espresso idling resource never idle with scroll_behaviorEspresso 空闲资源永远不会因 scroll_behavior 而空闲
【发布时间】:2019-01-14 21:56:49
【问题描述】:

在一个带有协调器布局和嵌套滚动视图的活动上启动我的测试

layout_behavior="@string/appbar_scrolling_view_behavior"

set 导致测试永远不会结束。我已经把它缩小到工作而不是只用这条线。

有人处理过这个问题吗?

当 layout_behavior 被设置时,Looper 日志被重载:

Dispatching to Handler (android.view.Choreographer$FrameHandler) {8d716a} android.view.Choreographer$FrameDisplayEventReceiver@6c3c65b: 0

Finished to Handler (android.view.Choreographer$FrameHandler) {8d716a} android.view.Choreographer$FrameDisplayEventReceiver@6c3c65b

【问题讨论】:

  • 通过从 NestedScrollView 中删除 app:layout_anchor="@id/myview" 修复

标签: android android-espresso


【解决方案1】:

通过从 NestedScrollView 中删除 app:layout_anchor="@id/myview" 修复

【讨论】:

    猜你喜欢
    • 2021-12-07
    • 2015-03-24
    • 1970-01-01
    • 2022-09-28
    • 2017-06-07
    • 2015-08-24
    • 2014-10-17
    • 2019-07-13
    • 1970-01-01
    相关资源
    最近更新 更多