Jim Miller | 6b05d58 | 2011-07-18 13:09:59 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 2 | <!-- Copyright (C) 2011 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. |
Jim Miller | 6b05d58 | 2011-07-18 13:09:59 -0700 | [diff] [blame] | 15 | --> |
| 16 | |
Jim Miller | ff2aa0b | 2012-09-06 19:03:52 -0700 | [diff] [blame] | 17 | <!-- This is a view to control music playback in keyguard. --> |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 18 | <com.android.keyguard.KeyguardTransportControlView |
Jim Miller | 6b05d58 | 2011-07-18 13:09:59 -0700 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
Jim Miller | ff2aa0b | 2012-09-06 19:03:52 -0700 | [diff] [blame] | 20 | android:layout_width="wrap_content" |
| 21 | android:layout_height="wrap_content" |
| 22 | android:gravity="center_horizontal" |
| 23 | android:id="@+id/keyguard_transport_control"> |
Jim Miller | 6b05d58 | 2011-07-18 13:09:59 -0700 | [diff] [blame] | 24 | |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 25 | <LinearLayout |
| 26 | android:orientation="vertical" |
| 27 | android:layout_width="match_parent" |
Jim Miller | 6b05d58 | 2011-07-18 13:09:59 -0700 | [diff] [blame] | 28 | android:layout_height="wrap_content" |
Adam Powell | f889524 | 2013-09-30 16:16:24 -0700 | [diff] [blame] | 29 | android:layout_gravity="top" |
| 30 | android:gravity="center"> |
| 31 | <ImageView |
| 32 | android:id="@+id/badge" |
| 33 | android:layout_width="32dp" |
| 34 | android:layout_height="32dp" |
| 35 | android:scaleType="fitCenter" /> |
| 36 | <FrameLayout |
| 37 | android:id="@+id/info_container" |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 38 | android:layout_width="match_parent" |
Adam Powell | f889524 | 2013-09-30 16:16:24 -0700 | [diff] [blame] | 39 | android:layout_height="wrap_content"> |
| 40 | <LinearLayout |
| 41 | android:id="@+id/metadata_container" |
| 42 | android:orientation="vertical" |
| 43 | android:layout_width="match_parent" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:layout_gravity="center"> |
| 46 | <TextView |
| 47 | android:id="@+id/title" |
| 48 | android:layout_width="match_parent" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:layout_marginStart="16dip" |
| 51 | android:layout_marginEnd="16dip" |
| 52 | android:gravity="center_horizontal" |
| 53 | android:singleLine="true" |
| 54 | android:ellipsize="marquee" |
| 55 | android:textAppearance="?android:attr/textAppearanceLarge" |
| 56 | android:fontFamily="sans-serif-light" /> |
| 57 | <TextView |
| 58 | android:id="@+id/artist_album" |
| 59 | android:layout_width="match_parent" |
| 60 | android:layout_height="wrap_content" |
| 61 | android:layout_marginStart="16dip" |
| 62 | android:layout_marginEnd="16dip" |
| 63 | android:gravity="center_horizontal" |
| 64 | android:singleLine="true" |
| 65 | android:ellipsize="marquee" |
| 66 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 67 | android:textColor="?android:attr/textColorSecondary" /> |
| 68 | </LinearLayout> |
| 69 | <RelativeLayout |
| 70 | android:id="@+id/transient_seek" |
| 71 | android:layout_width="match_parent" |
| 72 | android:layout_height="wrap_content" |
| 73 | android:layout_gravity="center" |
| 74 | android:visibility="invisible"> |
| 75 | <SeekBar |
| 76 | android:id="@+id/transient_seek_bar" |
| 77 | android:layout_width="match_parent" |
Adam Powell | 31049d7 | 2013-10-07 12:58:42 -0700 | [diff] [blame] | 78 | android:layout_height="wrap_content" |
| 79 | style="@style/Widget.TransportControl.SeekBar" /> |
Adam Powell | f889524 | 2013-09-30 16:16:24 -0700 | [diff] [blame] | 80 | <TextView |
| 81 | android:id="@+id/transient_seek_time_elapsed" |
| 82 | android:layout_width="wrap_content" |
| 83 | android:layout_height="wrap_content" |
| 84 | android:layout_alignParentStart="true" |
| 85 | android:layout_below="@id/transient_seek_bar" |
| 86 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 87 | android:textSize="12dp" /> |
| 88 | <TextView |
| 89 | android:id="@+id/transient_seek_time_remaining" |
| 90 | android:layout_width="wrap_content" |
| 91 | android:layout_height="wrap_content" |
| 92 | android:layout_alignParentEnd="true" |
| 93 | android:layout_below="@id/transient_seek_bar" |
| 94 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 95 | android:textSize="12dp" /> |
| 96 | </RelativeLayout> |
Adam Powell | f889524 | 2013-09-30 16:16:24 -0700 | [diff] [blame] | 97 | </FrameLayout> |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 98 | <LinearLayout |
| 99 | android:layout_width="match_parent" |
| 100 | android:layout_height="wrap_content" |
Adam Powell | 00298a5 | 2013-10-13 11:07:33 -0700 | [diff] [blame] | 101 | android:layout_marginTop="4dp" |
| 102 | android:orientation="horizontal"> |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 103 | <FrameLayout |
| 104 | android:layout_width="wrap_content" |
| 105 | android:layout_height="wrap_content" |
| 106 | android:layout_weight="1"> |
Adam Powell | f889524 | 2013-09-30 16:16:24 -0700 | [diff] [blame] | 107 | <ImageButton |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 108 | android:id="@+id/btn_prev" |
| 109 | android:layout_width="wrap_content" |
| 110 | android:layout_height="wrap_content" |
| 111 | android:layout_gravity="center" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 112 | android:src="@drawable/ic_media_previous" |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 113 | android:background="?android:attr/selectableItemBackground" |
Adam Powell | f889524 | 2013-09-30 16:16:24 -0700 | [diff] [blame] | 114 | android:minWidth="48dp" |
| 115 | android:minHeight="48dp" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 116 | android:contentDescription="@string/keyguard_accessibility_transport_prev_description"/> |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 117 | </FrameLayout> |
| 118 | <FrameLayout |
| 119 | android:layout_width="wrap_content" |
| 120 | android:layout_height="wrap_content" |
| 121 | android:layout_weight="1"> |
Adam Powell | f889524 | 2013-09-30 16:16:24 -0700 | [diff] [blame] | 122 | <ImageButton |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 123 | android:id="@+id/btn_play" |
| 124 | android:layout_width="wrap_content" |
| 125 | android:layout_height="wrap_content" |
| 126 | android:layout_gravity="center" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 127 | android:src="@drawable/ic_media_play" |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 128 | android:background="?android:attr/selectableItemBackground" |
Adam Powell | f889524 | 2013-09-30 16:16:24 -0700 | [diff] [blame] | 129 | android:minWidth="48dp" |
| 130 | android:minHeight="48dp" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 131 | android:contentDescription="@string/keyguard_accessibility_transport_play_description"/> |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 132 | </FrameLayout> |
| 133 | <FrameLayout |
| 134 | android:layout_width="wrap_content" |
| 135 | android:layout_height="wrap_content" |
| 136 | android:layout_weight="1"> |
Adam Powell | f889524 | 2013-09-30 16:16:24 -0700 | [diff] [blame] | 137 | <ImageButton |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 138 | android:id="@+id/btn_next" |
| 139 | android:layout_width="wrap_content" |
| 140 | android:layout_height="wrap_content" |
| 141 | android:layout_gravity="center" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 142 | android:src="@drawable/ic_media_next" |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 143 | android:background="?android:attr/selectableItemBackground" |
Adam Powell | f889524 | 2013-09-30 16:16:24 -0700 | [diff] [blame] | 144 | android:minWidth="48dp" |
| 145 | android:minHeight="48dp" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 146 | android:contentDescription="@string/keyguard_accessibility_transport_next_description"/> |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 147 | </FrameLayout> |
| 148 | </LinearLayout> |
| 149 | </LinearLayout> |
Jim Miller | 6b05d58 | 2011-07-18 13:09:59 -0700 | [diff] [blame] | 150 | |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 151 | </com.android.keyguard.KeyguardTransportControlView> |