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

    <RelativeLayout
        android:id="@+id/controller_top_layout"
        android:layout_width="match_parent"
        android:layout_height="58dp"
        android:background="@drawable/cnlive_video_top_bg">

        <ImageView
            android:id="@+id/playShare"
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:layout_alignParentRight="true"
            android:layout_marginRight="3dp"
            android:scaleType="fitCenter"
            android:padding="11dp"
            android:src="@drawable/cnlive_video_share" />

    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/controller_bottom_layout"
        android:layout_width="match_parent"
        android:layout_height="58dp"
        android:layout_alignParentBottom="true"
        android:background="@drawable/cnlive_video_bottom_bg">

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:gravity="center"
            android:layout_marginBottom="11dp">

            <ImageView
                android:id="@+id/avatar"
                android:layout_width="11dp"
                android:layout_height="13dp"
                android:layout_marginLeft="15dp"
                android:layout_marginRight="4dp"
                android:src="@drawable/cnlive_avatar" />

            <TextView
                android:id="@+id/liveFocusCount"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="0"
                android:textColor="@android:color/white"
                android:textSize="16dp" />
        </LinearLayout>

        <TextView
            android:id="@+id/inputBtn"
            android:layout_width="345dp"
            android:layout_height="35dp"
            android:layout_alignParentBottom="true"
            android:layout_centerInParent="true"
            android:layout_marginBottom="4dp"
            android:background="@drawable/cnlive_chat_btn_bg"
            android:gravity="center"
            android:text="说点什么..."
            android:textColor="@android:color/white"
            android:textSize="14dp"
            android:visibility="gone" />

        <ToggleButton
            android:id="@+id/barrageBtn"
            android:layout_width="37dp"
            android:layout_height="19dp"
            android:layout_alignParentBottom="true"
            android:layout_marginBottom="11dp"
            android:layout_marginRight="19dp"
            android:layout_toLeftOf="@+id/fullScreen"
            android:background="@drawable/cnlive_switch_bg"
            android:checked="true"
            android:text=""
            android:textOff=""
            android:textOn="" />

        <ImageView
            android:id="@+id/fullScreen"
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:layout_alignParentBottom="true"
            android:layout_alignParentRight="true"
            android:layout_marginRight="4dp"
            android:padding="11dp"
            android:scaleType="fitCenter"
            android:src="@drawable/cnlive_fullscreen_p" />

    </RelativeLayout>

</RelativeLayout>