| OLD | NEW |
| (Empty) |
| 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 <!-- This file is taken from the Android codebase. | |
| 17 samples/Support4Demos/res/layout/media_controller.xml | |
| 18 --> | |
| 19 | |
| 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"> | |
| 24 | |
| 25 <LinearLayout | |
| 26 android:layout_width="match_parent" | |
| 27 android:layout_height="wrap_content" | |
| 28 android:gravity="center" | |
| 29 android:paddingTop="4dip" | |
| 30 android:orientation="horizontal"> | |
| 31 | |
| 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 --> | |
| 35 <ImageButton | |
| 36 android:id="@+id/prev" | |
| 37 android:contentDescription="@null" | |
| 38 style="@android:style/MediaButton.Previous" /> | |
| 39 <!--suppress RequiredSize --> | |
| 40 <ImageButton | |
| 41 android:id="@+id/rew" | |
| 42 android:contentDescription="@null" | |
| 43 style="@android:style/MediaButton.Rew" /> | |
| 44 <!--suppress RequiredSize --> | |
| 45 <ImageButton | |
| 46 android:id="@+id/pause" | |
| 47 android:contentDescription="@null" | |
| 48 style="@android:style/MediaButton.Play" /> | |
| 49 <!--suppress RequiredSize --> | |
| 50 <ImageButton | |
| 51 android:id="@+id/ffwd" | |
| 52 android:contentDescription="@null" | |
| 53 style="@android:style/MediaButton.Ffwd" /> | |
| 54 <!--suppress RequiredSize --> | |
| 55 <ImageButton | |
| 56 android:id="@+id/next" | |
| 57 android:contentDescription="@null" | |
| 58 style="@android:style/MediaButton.Next" /> | |
| 59 | |
| 60 </LinearLayout> | |
| 61 | |
| 62 <LinearLayout | |
| 63 android:id="@+id/mediacontroller_progress_container" | |
| 64 android:layout_width="match_parent" | |
| 65 android:layout_height="wrap_content" | |
| 66 android:orientation="horizontal"> | |
| 67 | |
| 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" /> | |
| 78 | |
| 79 <SeekBar | |
| 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" /> | |
| 85 | |
| 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" /> | |
| 96 </LinearLayout> | |
| 97 | |
| 98 </LinearLayout> | |
| 99 | |
| OLD | NEW |