我的布局有问题,我在里面创建了带有 RecyclerView 的 SwipeRefreshLayout。在 android 4.2.2+ 中一切正常,但在 andorid 2.3.4 中我无法向上滚动,因为在 RecyclerView 的任何地方它都会刷新,我必须向下滚动然后向上滚动。
这是我的代码:
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/forum_swipe_container"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LVP"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center" />
</android.support.v4.widget.SwipeRefreshLayout>
我发现了这个问题:https ://code.google.com/p/android/issues/detail?id=78191但没有解决方案。知道如何解决吗?