Create our own media control - basic operation
[pub/Android/ownCloud.git] / res / layout / media_control.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2012-2013 ownCloud Inc.
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20 -->
21
22 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
23 android:layout_width="match_parent"
24 android:layout_height="wrap_content"
25 android:orientation="vertical">
26
27 <LinearLayout
28 android:layout_width="match_parent"
29 android:layout_height="wrap_content"
30 android:gravity="center"
31 android:paddingTop="4dip"
32 android:orientation="horizontal"
33 >
34
35 <ImageButton
36 android:id="@+id/previousBtn"
37 style="@android:style/MediaButton.Previous"
38 android:contentDescription="@string/media_previous_description"
39 />
40 <ImageButton
41 android:id="@+id/rewindBtn"
42 style="@android:style/MediaButton.Rew"
43 android:contentDescription="@string/media_rewind_description"
44 />
45 <ImageButton
46 android:id="@+id/playBtn"
47 style="@android:style/MediaButton.Play"
48 android:contentDescription="@string/media_play_pause_description"
49 />
50 <ImageButton
51 android:id="@+id/forwardBtn"
52 style="@android:style/MediaButton.Ffwd"
53 android:contentDescription="@string/media_forward_description"
54 />
55 <ImageButton
56 android:id="@+id/nextBtn"
57 style="@android:style/MediaButton.Next"
58 android:contentDescription="@string/media_next_description"
59 />
60
61 </LinearLayout>
62
63 <LinearLayout
64 android:layout_width="match_parent"
65 android:layout_height="wrap_content"
66 android:orientation="horizontal">
67
68 <TextView
69 android:id="@+id/currentTimeText"
70 android:textSize="14sp"
71 android:textStyle="bold"
72 android:paddingTop="4dip"
73 android:paddingStart="4dip"
74 android:layout_gravity="center_horizontal"
75 android:layout_width="wrap_content"
76 android:layout_height="wrap_content"
77 android:paddingEnd="4dip"
78 android:text="@string/placeholder_media_time"
79 />
80
81 <SeekBar
82 android:id="@+id/progressBar"
83 style="?android:attr/progressBarStyleHorizontal"
84 android:layout_width="0dip"
85 android:layout_weight="1"
86 android:layout_height="32dip"
87 android:layout_alignParentStart="true"
88 android:layout_alignParentEnd="true" />
89
90 <TextView android:id="@+id/totalTimeText"
91 android:textSize="14sp"
92 android:textStyle="bold"
93 android:paddingTop="4dip"
94 android:paddingEnd="4dip"
95 android:layout_gravity="center_horizontal"
96 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
98 android:paddingStart="4dip"
99 android:text="@string/placeholder_media_time"
100 />
101
102 </LinearLayout>
103
104 </LinearLayout>