fragment_layout_chatroom.xml 1.83 KB
<?xml version="1.0" encoding="utf-8"?><!--聊天室Fragment布局-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/color_383643">

    <include layout="@layout/empty_view" />

    <TextView
        android:id="@+id/reconnect_msg"
        android:layout_width="match_parent"
        android:layout_height="32dp"
        android:background="#5bafafaf"
        android:text="网络连接异常,请检查设置"
        android:gravity="center"
        android:textSize="14sp"
        android:textColor="@color/colorPrimary"
        android:visibility="gone"/>

    <ImageView
        android:id="@+id/fr_chatroom_img_chat"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_marginBottom="17dp"
        android:layout_marginLeft="10dp"
        android:onClick="onClick"
        android:src="@mipmap/chatroom_chaticon" />

    <ImageView
        android:id="@+id/fr_chatroom_img_gift"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:layout_marginBottom="19dp"
        android:layout_marginRight="10dp"
        android:onClick="onClick"
        android:src="@mipmap/chatroom_gift_icon" />

    <android.support.v7.widget.RecyclerView
        android:background="@color/color_383643"
        android:id="@+id/list"
        android:layout_above="@+id/fr_chatroom_img_gift"
        android:paddingBottom="5dp"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        />


</RelativeLayout>