1

我正在使用来自支持库 rev 19.1 - SwipeRefreshLayout 的新组件。

它似乎工作得很好,除了一件事:
当我缓慢滚动 ListView 时(为了触发下拉刷新),滚动出现故障(列表上下跳跃)。
当我快速滚动或向下滚动(常规滚动,而不是下拉刷新部分)时,不会发生这种情况。

这是我在 xml 中连接 SwipeRefreshLayout 的方法:

<android.support.v4.widget.SwipeRefreshLayout
    android:id="@+id/swipe_container"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ListView
        android:id="@android:id/list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scrollbars="none"
        android:scrollingCache="false"
        android:listSelector="@android:color/transparent" />
</android.support.v4.widget.SwipeRefreshLayout>

是否有解决此问题的方法?

提前感谢!

4

0 回答 0