[Solved] How add two recyclerview same fragmnets
<LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”match_parent” android:layout_height=”match_parent” android:orientation=”vertical”> <android.support.v7.widget.RecyclerView android:id=”@+id/recycler_one” android:layout_width=”match_parent” android:layout_height=”0dp” android:layout_weight=”0.5″ /> <android.support.v7.widget.RecyclerView android:id=”@+id/recycler_two” android:layout_width=”match_parent” android:layout_height=”0dp” android:layout_weight=”0.5″ /> </LinearLayout> And in your Java code create two different instances of the same adapter and set that adapter to both recycler views.Since you have same view and different data you can use same adapter for both recycler view.Hope … Read more