cnlive_layout_media_playback_controller.xml
3.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?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>