native_player.xml
4.17 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/playerlayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:keepScreenOn="true" >
<RelativeLayout
android:id="@+id/player_top"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/video_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:paddingTop="20dip"
android:singleLine="true"
android:text=""
android:textSize="20dip" />
<TextView
android:id="@+id/play_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/video_name"
android:paddingTop="15dip"
android:text="" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/player_bottom"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="center"
android:orientation="horizontal" >
<SeekBar
android:id="@+id/playerView_seekBar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="40dip"
android:paddingLeft="10dip"
android:paddingRight="10dip" />
<TextView
android:id="@+id/playerView_currentTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/playerView_seekBar"
android:paddingLeft="15dip"
android:text=""
android:textColor="#ffffffff"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/playerView_totalTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@id/playerView_seekBar"
android:paddingRight="15dip"
android:text=""
android:textColor="#ffffffff"
android:textSize="14sp"
android:textStyle="bold" />
<ImageButton
android:id="@+id/play_pause"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/playerView_seekBar"
android:layout_centerHorizontal="true"
android:layout_marginBottom="20dip"
android:layout_marginTop="20dip"
android:background="@drawable/pause" />
<ImageButton android:id="@+id/forward"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/forward"
android:layout_toRightOf="@id/play_pause"
android:layout_below="@id/playerView_seekBar"
android:layout_marginTop="22dip"
android:layout_marginLeft="35dip"
android:layout_marginBottom="20dip"
android:contentDescription=""/>
<ImageButton android:id="@+id/backward"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/backward"
android:layout_toLeftOf="@id/play_pause"
android:layout_below="@id/playerView_seekBar"
android:layout_marginTop="22dip"
android:layout_marginRight="35dip"
android:layout_marginBottom="20dip"
android:contentDescription=""/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/player"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@id/player_bottom"
android:layout_below="@id/player_top" >
</RelativeLayout>
</RelativeLayout>