Android swiperefreshlayout回收器视图不下拉
我正在尝试将SwipeRefreshLayout实现到RecyclerView。我的问题是,在刷新手势期间,RecyclerView本身没有向下拉。与中一样,当我获得刷新图标时,RecyclerView保持静止。有人能帮我把回收器视图放下来刷新一下吗 这是设计图Android swiperefreshlayout回收器视图不下拉,android,android-recyclerview,swiperefreshlayout,Android,Android Recyclerview,Swiperefreshlayout,我正在尝试将SwipeRefreshLayout实现到RecyclerView。我的问题是,在刷新手势期间,RecyclerView本身没有向下拉。与中一样,当我获得刷新图标时,RecyclerView保持静止。有人能帮我把回收器视图放下来刷新一下吗 这是设计图 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
tools:context="${relativePackage}.${activityClass}">
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/refreshMeeting"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.RecyclerView
android:id="@+id/my_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical" />
</android.support.v4.widget.SwipeRefreshLayout>
</RelativeLayout>
但这是预期的行为。SwipeRefreshLayout不允许下拉其中的视图。您必须使用一些库