media_controller.xml revision cbd4bcaa7141c134a1609cc087186a58c12d4878
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2007 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7  
8          http://www.apache.org/licenses/LICENSE-2.0
9  
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="match_parent"
19    android:layout_height="wrap_content"
20    android:background="#CC000000"
21    android:orientation="vertical">
22
23    <LinearLayout
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content"
26        android:gravity="center"
27        android:paddingTop="4dip"
28        android:orientation="horizontal">
29
30        <ImageButton android:id="@+id/prev" style="@android:style/MediaButton.Previous" />
31        <ImageButton android:id="@+id/rew" style="@android:style/MediaButton.Rew" />
32        <ImageButton android:id="@+id/pause" style="@android:style/MediaButton.Play" />
33        <ImageButton android:id="@+id/ffwd" style="@android:style/MediaButton.Ffwd" />
34        <ImageButton android:id="@+id/next" style="@android:style/MediaButton.Next" />
35
36    </LinearLayout>
37
38    <LinearLayout
39        android:layout_width="match_parent"
40        android:layout_height="wrap_content"
41        android:orientation="horizontal">
42
43        <TextView android:id="@+id/time_current"
44            android:textSize="14sp"
45            android:textStyle="bold"
46            android:paddingTop="4dip"
47            android:paddingLeft="4dip"
48            android:layout_gravity="center_horizontal"
49            android:layout_width="wrap_content"
50            android:layout_height="wrap_content"
51            android:paddingRight="4dip" />
52
53        <SeekBar
54            android:id="@+id/mediacontroller_progress"
55            style="?android:attr/progressBarStyleHorizontal"
56            android:layout_width="0dip"
57            android:layout_weight="1"
58            android:layout_height="32dip"
59            android:layout_alignParentLeft="true"
60            android:layout_alignParentRight="true" />
61
62        <TextView android:id="@+id/time"
63            android:textSize="14sp"
64            android:textStyle="bold"
65            android:paddingTop="4dip"
66            android:paddingRight="4dip"
67            android:layout_gravity="center_horizontal"
68            android:layout_width="wrap_content"
69            android:layout_height="wrap_content"
70            android:paddingLeft="4dip" />
71    </LinearLayout>
72
73</LinearLayout>
74