Merge pull request #453 from owncloud/improve_action_bar_pr_392_with_develop
[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 version 2,
9 as published by the Free Software Foundation.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 -->
20
21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22 android:layout_width="match_parent"
23 android:layout_height="wrap_content"
24 android:orientation="vertical">
25
26 <LinearLayout
27 android:layout_width="match_parent"
28 android:layout_height="wrap_content"
29 android:gravity="center"
30 android:paddingTop="4dp"
31 android:orientation="horizontal"
32 >
33
34 <ImageButton
35 android:id="@+id/rewindBtn"
36 style="@android:style/MediaButton.Rew"
37 android:contentDescription="@string/media_rewind_description"
38 />
39 <ImageButton
40 android:id="@+id/playBtn"
41 style="@android:style/MediaButton.Play"
42 android:contentDescription="@string/media_play_pause_description"
43 />
44 <ImageButton
45 android:id="@+id/forwardBtn"
46 style="@android:style/MediaButton.Ffwd"
47 android:contentDescription="@string/media_forward_description"
48 />
49
50 </LinearLayout>
51
52 <LinearLayout
53 android:layout_width="match_parent"
54 android:layout_height="wrap_content"
55 android:orientation="horizontal">
56
57 <TextView
58 android:id="@+id/currentTimeText"
59 android:textSize="14sp"
60 android:textStyle="bold"
61 android:paddingTop="4dp"
62 android:paddingStart="4dp"
63 android:layout_gravity="center_horizontal"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:paddingEnd="4dp"
67 android:text="@string/placeholder_media_time"
68 />
69
70 <SeekBar
71 android:id="@+id/progressBar"
72 style="?android:attr/progressBarStyleHorizontal"
73 android:layout_width="0dp"
74 android:layout_weight="1"
75 android:layout_height="32dp"
76 android:layout_alignParentStart="true"
77 android:layout_alignParentEnd="true" />
78
79 <TextView android:id="@+id/totalTimeText"
80 android:textSize="14sp"
81 android:textStyle="bold"
82 android:paddingTop="4dp"
83 android:paddingEnd="4dp"
84 android:layout_gravity="center_horizontal"
85 android:layout_width="wrap_content"
86 android:layout_height="wrap_content"
87 android:paddingStart="4dp"
88 android:text="@string/placeholder_media_time"
89 />
90
91 </LinearLayout>
92
93 </LinearLayout>