cnlive_fragment_ugc_live_player.xml 5.9 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"
    android:orientation="vertical">

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

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

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

    <View
        android:layout_width="match_parent"
        android:layout_height="159dp"
        android:background="@drawable/cnlive_video_bottom_bg"
        android:layout_alignBottom="@+id/bottomLayout"/>

    <com.cnlive.libs.video.barrage.BarrageLayout
        android:id="@+id/topBarrage"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/anchorAboutLayout" />

    <com.cnlive.libs.video.barrage.BarrageLayout
        android:id="@+id/bottomBarrage"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@+id/bottomLayout" />
    <TextView
        android:id="@+id/retryText"
        android:layout_width="match_parent"
        android:layout_height="42dp"
        android:layout_above="@+id/bottomLayout"
        android:background="@color/colorRetry"
        android:gravity="center_vertical"
        android:paddingLeft="25dp"
        android:textColor="@color/colorWhite"
        android:textSize="14dp"
        android:visibility="gone"/>
    <RelativeLayout
        android:id="@+id/bottomLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true">

        <View
            android:id="@+id/bottomLine"
            android:layout_width="match_parent"
            android:layout_height="0.5dp"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="15dp"
            android:background="#66ffffff" />

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true">

            <TextView
                android:id="@+id/showSoftInput"
                android:layout_width="250dp"
                android:layout_height="35dp"
                android:layout_below="@+id/bottomLine"
                android:layout_marginBottom="19dp"
                android:layout_marginRight="20dp"
                android:layout_marginTop="19dp"
                android:layout_toRightOf="@+id/playerPlayPause"
                android:background="@drawable/cnlive_chat_btn_bg"
                android:gravity="center"
                android:text="说点什么吧..."
                android:textColor="@android:color/white"
                android:textSize="14dp" />

            <LinearLayout
                android:id="@+id/supportAnchor"
                android:layout_width="45dp"
                android:layout_height="45dp"
                android:layout_gravity="center_vertical"
                android:background="@drawable/cnlive_support_bg"
                android:gravity="center"
                android:orientation="vertical"
                android:visibility="visible">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="¥"
                    android:textColor="@android:color/white"
                    android:textSize="16dp" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="支持TA"
                    android:textColor="@android:color/white"
                    android:textSize="9dp" />

            </LinearLayout>

            <LinearLayout
                android:id="@+id/sendGift"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:gravity="center"
                android:orientation="vertical"
                android:visibility="gone">

                <ImageView
                    android:layout_width="44dp"
                    android:layout_height="34dp"
                    android:src="@drawable/cnlive_flay_kiss_big" />

                <TextView
                    android:id="@+id/flyKissPriceText"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:textColor="@android:color/white"
                    android:textSize="11dp"
                    tools:text="10¥送飞吻" />

            </LinearLayout>
        </LinearLayout>
    </RelativeLayout>

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

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

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

    <ImageView
        android:id="@+id/pageBack"
        android:layout_width="48dp"
        android:layout_height="48dp"
        android:padding="15dp"
        android:scaleType="fitCenter"
        android:src="@drawable/cnlive_video_back" />

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

</RelativeLayout>