cnlive_activity_player.xml 4.71 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#ff3f3f3f"
    android:orientation="vertical">


    <com.cnlive.lib_cnvideo.ui.widget.player.CNMediaPlayer
        android:id="@+id/cnlivePlayer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />


    <com.cnlive.libs.video.barrage.BarrageLayout
        android:id="@+id/barrageLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignBottom="@+id/cnlivePlayer"
        android:layout_alignTop="@+id/cnlivePlayer"
        android:layout_marginBottom="58dp"
        android:layout_marginTop="58dp"
        android:visibility="gone" />

    <com.cnlive.lib_cnvideo.ui.widget.player.CNTouchView
        android:id="@+id/playerTouch"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignBottom="@+id/cnlivePlayer"
        android:layout_alignTop="@+id/cnlivePlayer" />

    <com.cnlive.lib_cnvideo.ui.widget.player.CNInfoView
        android:id="@+id/playerInfo"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignBottom="@+id/cnlivePlayer"
        android:layout_alignTop="@+id/cnlivePlayer" />

    <RelativeLayout
        android:id="@+id/controllerLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignBottom="@+id/cnlivePlayer"
        android:layout_alignTop="@+id/cnlivePlayer">

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

    </RelativeLayout>

    <ImageView
        android:id="@+id/back"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_marginLeft="3dp"
        android:padding="11dp"
        android:scaleType="fitCenter"
        android:src="@drawable/cnlive_video_back" />

    <LinearLayout
        android:id="@+id/bottomParentLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/cnlivePlayer">

        <RelativeLayout
            android:id="@+id/bottomLayout"
            android:layout_width="match_parent"
            android:layout_height="380dp">

            <android.support.v7.widget.RecyclerView
                android:id="@+id/chat_message"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_above="@+id/line"/>

            <View
                android:layout_width="match_parent"
                android:layout_height="159dp"
                android:layout_alignParentBottom="true"
                android:background="@drawable/cnlive_bottom_bg" />

            <TextView
                android:id="@+id/retryText"
                android:layout_width="match_parent"
                android:layout_height="42dp"
                android:layout_above="@+id/line"
                android:background="@color/colorRetry"
                android:gravity="center_vertical"
                android:paddingLeft="25dp"
                android:textColor="@color/colorWhite"
                android:textSize="14dp" />

            <View
                android:id="@+id/line"
                android:layout_width="345dp"
                android:layout_height="0.5dp"
                android:layout_above="@+id/inputBtnBottom"
                android:layout_centerHorizontal="true"
                android:layout_marginBottom="15dp"
                android:layout_marginTop="15dp"
                android:background="@drawable/cnlive_chat_line" />

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

        </RelativeLayout>
    </LinearLayout>

    <RelativeLayout
        android:id="@+id/foregroundLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fitsSystemWindows="true" />


    <!--<Button-->
    <!--android:id="@+id/test"-->
    <!--android:layout_width="wrap_content"-->
    <!--android:layout_height="wrap_content" />-->
</RelativeLayout>