fragment_qiangdan_xuanzedashen.xml 7 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"
    xmlns:tool="http://schemas.android.com/tools"
    android:orientation="vertical">

    <com.chudiangameplay.android.ui.view.MultiStateView
        android:id="@+id/multiplestatusView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        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">

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

                <!--呼叫中-->
                <RelativeLayout
                    android:id="@+id/rl_hujiaozhong"
                    android:layout_width="match_parent"
                    android:layout_height="44dp"
                    android:background="#fff">

                    <TextView
                        android:id="@+id/tv_text"
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:layout_marginLeft="16dp"
                        android:gravity="center_vertical"
                        android:text="正在呼叫"
                        android:textColor="#999"
                        android:textSize="13sp" />

                    <TextView
                        android:id="@+id/tv_time"
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:layout_alignParentRight="true"
                        android:layout_marginRight="16dp"
                        android:gravity="center_vertical"
                        android:text="04分59秒"
                        android:textColor="#333"
                        android:textSize="13sp" />

                </RelativeLayout>

                <!--等待30分钟-->
                <RelativeLayout
                    android:id="@+id/rl_wait"
                    android:layout_width="match_parent"
                    android:layout_height="44dp"
                    android:background="#fff"
                    android:visibility="gone"
                    tool:visibility="visible">

                    <TextView
                        android:id="@+id/tv_text2"
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:layout_marginLeft="16dp"
                        android:gravity="center_vertical"
                        android:text="0"
                        android:textColor="#999"
                        android:textSize="13sp" />

                    <TextView
                        android:id="@+id/tv_time2"
                        android:layout_width="80dp"
                        android:layout_height="30dp"
                        android:layout_alignParentRight="true"
                        android:layout_centerVertical="true"
                        android:layout_marginRight="16dp"
                        android:background="@drawable/shape_circle_maincolor"
                        android:gravity="center"
                        android:text="重新匹配"
                        android:textColor="#fff"
                        android:textSize="13sp" />

                </RelativeLayout>
            </RelativeLayout>

            <android.support.v7.widget.RecyclerView
                android:id="@+id/recyclerview"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginTop="8dp"
                android:background="#fff"
                android:visibility="gone" />

            <RelativeLayout
                android:id="@+id/rl_empty"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerHorizontal="true"
                    android:layout_marginTop="124dp"
                    android:gravity="center"
                    android:orientation="vertical">

                    <ImageView
                        android:id="@+id/iv_empty"
                        android:layout_width="121dp"
                        android:layout_height="121dp"
                        android:src="@drawable/ico_empty_waiting" />

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="22dp"
                        android:gravity="center"
                        android:text="正在匹配中..."
                        android:textColor="#333"
                        android:textSize="15sp"
                        android:textStyle="bold" />

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="8dp"
                        android:gravity="center"
                        android:text="请等待邀约响应"
                        android:textColor="#999"
                        android:textSize="12sp"
                        android:visibility="gone" />

                </LinearLayout>
            </RelativeLayout>

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

    <!--未读悬浮-->
    <LinearLayout
        android:id="@+id/ll_unred"
        android:layout_width="wrap_content"
        android:layout_height="32dp"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:layout_marginBottom="40dp"
        android:background="@drawable/shape_qiangdan_unread_dashen_bg"
        android:gravity="center_vertical"
        android:orientation="horizontal"
        android:visibility="gone">

        <ImageView
            android:layout_width="9dp"
            android:layout_height="10dp"
            android:layout_marginLeft="10dp"
            android:src="@drawable/ico_qiangdan_unred_dashen_xiajiantou" />

        <TextView
            android:id="@+id/tv_unread_msgcount"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="8dp"
            android:layout_marginRight="17dp"
            android:text="0条未查看"
            android:textColor="@color/mainColor"
            android:textSize="12sp" />
    </LinearLayout>
</RelativeLayout>