0
同じ画面上に一覧表とグリッドで作業していないリフレッシュしスワイプは働いていないリフレッシュするために、私は同じ画面が、スワイプのリストとグリッドのリサイクルビューを使用しています
<android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swipe_refresh_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.RecyclerView
android:id="@+id/listView"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</android.support.v7.widget.RecyclerView>
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
私は間違ったことをしているか、間違った方法で実装していますか?
レイアウトのスナップショットを投稿できますか? SwipeToRefreshLayoutを複数のrecyclerviewsで使用できるかどうかはわかりません。リフレッシュするためにスワイプを実装するためのガイド:https://guides.codepath.com/android/Implementing-Pull-to-Refresh-Guide –
私はあなたが正しいと思います。私は2つのスワイプを使用してリサイクルビューをリフレッシュしても問題ありません –