现有两个RecyclerView,每个都嵌套有NestedScrollView,部分代码如下
<android.support.v4.widget.NestedScrollView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@color/global_activity_background_color">
<android.support.v7.widget.RecyclerView
android:id="@+id/goods_left_recycler_list"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</android.support.v7.widget.RecyclerView>
</android.support.v4.widget.NestedScrollView>
<android.support.v4.widget.NestedScrollView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="4"
android:background="@color/global_background_color_white">
<android.support.v7.widget.RecyclerView
android:id="@+id/goods_right_recycler_list"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</android.support.v7.widget.RecyclerView>
</android.support.v4.widget.NestedScrollView>