fragment_home_im.xml 4.56 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#eee"
        android:orientation="vertical">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="44dp"
            android:background="#fff">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:text="消息"
                android:textColor="#333"
                android:textSize="18sp"
                android:textStyle="bold" />

            <ImageView
                android:id="@+id/iv_contact"
                android:layout_width="28dp"
                android:layout_height="28dp"
                android:layout_alignParentRight="true"
                android:layout_centerVertical="true"
                android:layout_marginRight="16dp"
                android:src="@drawable/ico_im_contact" />

            <ImageView
                android:id="@+id/iv_sendmsg"
                android:layout_width="28dp"
                android:layout_height="28dp"
                android:layout_centerVertical="true"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:src="@drawable/ico_contact_add"
                android:visibility="gone" />

        </RelativeLayout>

        <View
            android:layout_width="match_parent"
            android:layout_height="1px"
            android:background="#eee"></View>

        <LinearLayout
            android:id="@+id/ll_open_notice"
            android:background="#F5F5F5"
            android:layout_width="match_parent"
            android:layout_height="33dp"
            android:gravity="center_vertical"
            android:paddingLeft="16dp"
            android:paddingRight="16dp"
            android:orientation="horizontal">

            <TextView
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_height="wrap_content"
                android:textColor="#999"
                android:textSize="11sp"
                android:gravity="center_vertical"
                android:text="记得开启消息通知,以免错过订单及聊天消息哦"
                />

            <TextView
                android:id="@+id/tv_open_notice"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:gravity="center"
                android:text="去开启"
                android:textColor="@color/mainColor"
                android:textSize="12sp"
                />

        </LinearLayout>

        <com.chudiangameplay.android.ui.view.MultiStateView
            android:id="@+id/multiplestatusview"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#fff"
            app:msv_emptyView="@layout/view_public_empty"
            app:msv_errorView="@layout/view_public_error_view"
            app:msv_loadingView="@layout/view_public_loading_view">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">



                <com.chudiangameplay.android.ui.view.swipemenulistview.SwipeMenuListView
                    android:id="@+id/swipe_listview"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:background="#fff"
                    android:divider="@android:color/transparent"
                    android:dividerHeight="0dp"
                    android:listSelector="@null" />

            </LinearLayout>
        </com.chudiangameplay.android.ui.view.MultiStateView>

        <TextView
            android:id="@+id/tv_unlogin"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginTop="8dp"
            android:background="#fff"
            android:gravity="center"
            android:text="未登录\n点击登录"
            android:textSize="20sp" />
    </LinearLayout>
</RelativeLayout>