像这种布局,里面需要放三个RecyclerView,其中最下面那个RecyclerView需要分页加载,另外两个RecyclerView应该怎么加进去呢?
<com.scwang.smartrefresh.layout.SmartRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/srl_message"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp">
<android.support.v7.widget.Toolbar
android:id="@+id/rl_activity"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#ffffff"
app:layout_scrollFlags="scroll|enterAlways">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableStart="@mipmap/gift"
android:drawableEnd="@mipmap/right_arrow"
android:drawablePadding="10dp"
android:paddingRight="10dp"
android:text="活动消息"
android:textColor="#FF111111" />
<TextView
android:id="@+id/tv_activity_count"
android:layout_width="15dp"
android:layout_height="15dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_gravity="end"
android:layout_marginTop="10dp"
android:layout_marginRight="40dp"
android:background="@drawable/home_message_shape"
android:gravity="center"
android:textColor="@color/white"
android:textSize="7sp"
android:visibility="gone" />
</android.support.v7.widget.Toolbar>
</android.support.design.widget.AppBarLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/rv_message"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="5dp"
app:layout_behavior="android.support.design.widget.AppBarLayout$ScrollingViewBehavior" />
</android.support.design.widget.CoordinatorLayout>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
最简单的方法,用这个,前面两个用添加headView
https://github.com/CymChad/Ba...