cnlive_layout_media_live_controller.xml
2.46 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
<?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"
android:background="@drawable/cnlive_video_top_bg"
android:visibility="gone">
<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>
<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"
android:visibility="gone">
<ImageView
android:id="@+id/playerPlayPause"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/cnlive_pause"
android:layout_centerVertical="true"/>
<TextView
android:id="@+id/resolution"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="高清"
android:layout_toLeftOf="@+id/videos"
android:layout_centerVertical="true"
android:textColor="@android:color/white"
android:layout_marginRight="10dp"/>
<TextView
android:id="@+id/videos"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="视角"
android:layout_toLeftOf="@+id/playerFullScreen"
android:layout_centerVertical="true"
android:textColor="@android:color/white"
android:layout_marginRight="10dp"/>
<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>