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

    <RelativeLayout
        android:id="@+id/mediaControllerTopLayout"
        android:layout_width="match_parent"
        android:layout_height="58dp">

        <TextView
            android:id="@+id/videoTitle"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:textColor="@android:color/white"
            tools:text="title"
            android:gravity="center"/>

    </RelativeLayout>

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

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

        <ImageView
            android:id="@+id/playerPlayPause"
            android:layout_width="20dp"
            android:layout_height="20dp"
            android:src="@drawable/cnlive_pause"
            android:layout_centerVertical="true"
            android:layout_marginLeft="20dp"
            android:layout_marginRight="15dp"/>

        <TextView
            android:id="@+id/timeCur"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="8dp"
            android:text="00:00"
            android:textSize="12dp"
            android:textColor="@android:color/white"
            android:layout_toRightOf="@+id/playerPlayPause"
            android:layout_centerVertical="true"/>

        <SeekBar
            android:id="@+id/videoProgressBar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_toRightOf="@+id/timeCur"
            android:maxHeight="2dp"
            android:minHeight="2dp"
            android:layout_toLeftOf="@+id/timeDur"
            android:progressDrawable="@drawable/cnlive_seekbar"
            android:thumb="@drawable/cnlive_seekbar_progress"
            android:thumbOffset="0dip"/>

        <TextView
            android:id="@+id/timeDur"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="8dp"
            android:text="00:00"
            android:layout_marginRight="15dp"
            android:textSize="12dp"
            android:textColor="@android:color/white"
            android:layout_toLeftOf="@+id/playerFullScreen"
            android:layout_centerVertical="true"/>

        <ImageView
            android:id="@+id/playerFullScreen"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_centerVertical="true"
            android:src="@drawable/cnlive_fullscreen_p"
            android:layout_alignParentRight="true"/>

    </RelativeLayout>


</RelativeLayout>