1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2007 The Android Open Source Project
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
16 <!-- This file is taken from the Android codebase.
17 samples/Support4Demos/res/layout/media_controller.xml
20 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
23 android:orientation="vertical">
26 android:layout_width="match_parent"
27 android:layout_height="wrap_content"
28 android:gravity="center"
29 android:paddingTop="4dip"
30 android:orientation="horizontal">
32 <!-- Android Lint is giving a false warning that layout_width and layout_height are not
33 set for buttons below, however MediaButton style sets the width and the height. -->
34 <!--suppress RequiredSize -->
36 android:id="@+id/prev"
37 android:contentDescription="@null"
38 style="@android:style/MediaButton.Previous" />
39 <!--suppress RequiredSize -->
42 android:contentDescription="@null"
43 style="@android:style/MediaButton.Rew" />
44 <!--suppress RequiredSize -->
46 android:id="@+id/pause"
47 android:contentDescription="@null"
48 style="@android:style/MediaButton.Play" />
49 <!--suppress RequiredSize -->
51 android:id="@+id/ffwd"
52 android:contentDescription="@null"
53 style="@android:style/MediaButton.Ffwd" />
54 <!--suppress RequiredSize -->
56 android:id="@+id/next"
57 android:contentDescription="@null"
58 style="@android:style/MediaButton.Next" />
63 android:id="@+id/mediacontroller_progress_container"
64 android:layout_width="match_parent"
65 android:layout_height="wrap_content"
66 android:orientation="horizontal">
68 <TextView android:id="@+id/time_current"
69 android:textSize="14sp"
70 android:textStyle="bold"
71 android:paddingTop="4dip"
72 android:paddingStart="4dip"
73 android:layout_gravity="center_horizontal"
74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content"
76 android:paddingEnd="4dip"
77 android:textColor="@color/cast_media_controller_text" />
80 android:id="@+id/mediacontroller_progress_bar"
81 style="?android:attr/progressBarStyleHorizontal"
82 android:layout_width="0dip"
83 android:layout_weight="1"
84 android:layout_height="32dip" />
86 <TextView android:id="@+id/time"
87 android:textSize="14sp"
88 android:textStyle="bold"
89 android:paddingTop="4dip"
90 android:paddingEnd="4dip"
91 android:layout_gravity="center_horizontal"
92 android:layout_width="wrap_content"
93 android:layout_height="wrap_content"
94 android:paddingStart="4dip"
95 android:textColor="@color/cast_media_controller_text" />