<?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" android:background="@color/bgColor" android:orientation="vertical" tools:context="com.shunzhi.parent.ui.activity.message.MesageActivity"> <FrameLayout android:layout_width="match_parent" android:layout_height="?android:actionBarSize" android:background="@color/titleColor"> <ImageView android:layout_width="wrap_content" android:layout_height="match_parent" android:src="@drawable/back" android:paddingLeft="@dimen/size_dp_15" android:paddingRight="@dimen/size_dp_15" android:id="@+id/iv_back" /> <TextView style="@style/TextView_Wrap_16" android:layout_gravity="center" android:gravity="center" android:text="消息" android:textSize="@dimen/textSize18" android:textColor="@color/white" /> </FrameLayout> <android.support.v7.widget.RecyclerView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/recyclerView" android:scrollbars="none" android:layout_margin="@dimen/size_dp_10" ></android.support.v7.widget.RecyclerView> </LinearLayout>