activity布局
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.activity.MainActivity">
<android.support.v7.widget.RecyclerView
android:id="@+id/main_right"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="2"
></android.support.v7.widget.RecyclerView>
<android.support.v7.widget.RecyclerView
android:id="@+id/main_left"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
></android.support.v7.widget.RecyclerView>
</LinearLayout>
适配器布局 左
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:id="@+id/left_adapater"
android:layout_width="match_parent"
android:layout_height="50dp">
<TextView
android:id="@+id/left_tv"
android:layout_width="match_parent"
android:layout_height="50dp" />
</LinearLayout>
右
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="50dp">
<TextView
android:id="@+id/right_tv"
android:layout_width="match_parent"
android:layout_height="50dp" />
</LinearLayout>
适配器 右
public class RightAdapater extends BaseQuickAdapter<Tw