layout_player_info.xml 7.27 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:test="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <LinearLayout
        android:id="@+id/loadingLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_centerInParent="true"
        android:gravity="center"
        android:orientation="vertical"
        android:visibility="gone">

        <ImageView
            android:id="@+id/loadPlayer"
            android:layout_width="50dp"
            android:layout_height="50dp"
            android:visibility="gone"/>

    </LinearLayout>

    <RelativeLayout
        android:id="@+id/errorLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#000000"
        android:visibility="gone">

        <LinearLayout
            android:id="@+id/errorTopLayout"
            android:layout_width="match_parent"
            android:layout_height="38dp"
            android:orientation="horizontal"
            android:gravity="center_vertical"
            android:visibility="gone">

            <ImageView
                android:id="@+id/errorBack"
                android:layout_width="21dp"
                android:layout_height="21dp"
                android:layout_marginLeft="8dp"
                android:layout_marginRight="5dp"
                android:src="@mipmap/player_fullscreen_back" />

            <TextView
                android:id="@+id/errorTitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_toRightOf="@+id/errorBack"
                android:textColor="#ffffff"
                test:text="title" />
        </LinearLayout>

        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true">

            <TextView
                android:id="@+id/errorText"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerHorizontal="true"
                android:text="连接失败"
                android:textColor="#999999"
                android:textSize="15dp" />

            <ImageView
                android:id="@+id/errorRetry"
                android:layout_width="92dp"
                android:layout_height="32dp"
                android:layout_below="@+id/errorText"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="27dp"
                android:src="@mipmap/player_error_retry" />

        </RelativeLayout>

    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/netStateLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#000000"
        android:visibility="gone">

        <LinearLayout
            android:id="@+id/netStateTopLayout"
            android:layout_width="match_parent"
            android:layout_height="38dp"
            android:gravity="center_vertical"
            android:orientation="horizontal"
            android:visibility="gone">

            <ImageView
                android:id="@+id/netStateBack"
                android:layout_width="21dp"
                android:layout_height="21dp"
                android:layout_marginLeft="8dp"
                android:layout_marginRight="5dp"
                android:src="@mipmap/player_fullscreen_back" />

            <TextView
                android:id="@+id/netStateTitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_toRightOf="@+id/errorBack"
                android:textColor="#ffffff"
                android:textSize="14sp"
                test:text="title" />
        </LinearLayout>

        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true">

            <TextView
                android:id="@+id/netStateText"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerHorizontal="true"
                android:text="@string/player_net_change"
                android:textColor="#999999"
                android:textSize="13sp" />

            <ImageView
                android:id="@+id/netStatePlay"
                android:layout_width="92dp"
                android:layout_height="32dp"
                android:layout_below="@+id/netStateText"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="27dp"
                android:src="@mipmap/player_continue_watching" />

        </RelativeLayout>

    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/endLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#7f000000"
        android:orientation="vertical"
        android:visibility="visible">

        <LinearLayout
            android:id="@+id/endTopLayout"
            android:layout_width="match_parent"
            android:layout_height="38dp"
            android:orientation="horizontal"
            android:gravity="center_vertical"
            android:visibility="gone">

            <ImageView
                android:id="@+id/endBack"
                android:layout_width="21dp"
                android:layout_height="21dp"
                android:layout_marginLeft="8dp"
                android:layout_marginRight="5dp"
                android:src="@mipmap/player_fullscreen_back" />

            <TextView
                android:id="@+id/endTitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_toRightOf="@+id/errorBack"
                android:textColor="#ffffff"
                test:text="title" />
        </LinearLayout>

        <RelativeLayout
            android:id="@+id/endBtnLayout"
            android:layout_width="230dp"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true">

            <ImageView
                android:id="@+id/endReplay"
                android:layout_width="100dp"
                android:layout_height="30dp"
                android:layout_alignParentLeft="true"
                android:background="@mipmap/player_end_replay" />

            <ImageView
                android:id="@+id/endShare"
                android:layout_width="100dp"
                android:layout_height="30dp"
                android:layout_alignParentRight="true"
                android:background="@mipmap/player_end_share" />

            <ImageView
                android:id="@+id/endReward"
                android:layout_width="230dp"
                android:layout_height="30dp"
                android:layout_below="@+id/endReplay"
                android:layout_marginTop="21dp"
                android:background="@mipmap/player_end_reward" />

        </RelativeLayout>

    </RelativeLayout>

</RelativeLayout>