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 | 02c4c8a | 2011-10-17 21:05:38 -0700 | [diff] [blame] | 25 | <!-- FrameLayout used as scrim to show between album art and buttons --> |
| 26 | <FrameLayout |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 27 | android:layout_width="match_parent" |
| 28 | android:layout_height="match_parent" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 29 | android:foreground="@drawable/ic_lockscreen_player_background" |
| 30 | android:contentDescription="@string/keygaurd_accessibility_media_controls"> |
Jim Miller | ff2aa0b | 2012-09-06 19:03:52 -0700 | [diff] [blame] | 31 | <!-- Use ImageView for its cropping features; otherwise could be android:background --> |
Jim Miller | 02c4c8a | 2011-10-17 21:05:38 -0700 | [diff] [blame] | 32 | <ImageView |
| 33 | android:id="@+id/albumart" |
| 34 | android:layout_width="match_parent" |
| 35 | android:layout_height="match_parent" |
| 36 | android:layout_gravity="fill" |
| 37 | android:scaleType="centerCrop" |
| 38 | android:adjustViewBounds="false" |
Jim Miller | 6b05d58 | 2011-07-18 13:09:59 -0700 | [diff] [blame] | 39 | /> |
Jim Miller | 02c4c8a | 2011-10-17 21:05:38 -0700 | [diff] [blame] | 40 | </FrameLayout> |
Jim Miller | 6b05d58 | 2011-07-18 13:09:59 -0700 | [diff] [blame] | 41 | |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 42 | <LinearLayout |
| 43 | android:orientation="vertical" |
| 44 | android:layout_width="match_parent" |
Jim Miller | 6b05d58 | 2011-07-18 13:09:59 -0700 | [diff] [blame] | 45 | android:layout_height="wrap_content" |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 46 | android:layout_gravity="bottom"> |
| 47 | <TextView |
| 48 | android:id="@+id/title" |
| 49 | android:layout_width="match_parent" |
| 50 | android:layout_height="wrap_content" |
| 51 | android:layout_marginTop="8dip" |
Fabrice Di Meglio | aac0d4e | 2012-07-19 19:21:26 -0700 | [diff] [blame] | 52 | android:layout_marginStart="16dip" |
| 53 | android:layout_marginEnd="16dip" |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 54 | android:gravity="center_horizontal" |
| 55 | android:singleLine="true" |
| 56 | android:ellipsize="end" |
| 57 | android:textAppearance="?android:attr/textAppearanceMedium" |
Jim Miller | 6b05d58 | 2011-07-18 13:09:59 -0700 | [diff] [blame] | 58 | /> |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 59 | <LinearLayout |
| 60 | android:layout_width="match_parent" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:orientation="horizontal" |
| 63 | android:layout_marginTop="5dip"> |
| 64 | <FrameLayout |
| 65 | android:layout_width="wrap_content" |
| 66 | android:layout_height="wrap_content" |
| 67 | android:layout_weight="1"> |
| 68 | <ImageView |
| 69 | android:id="@+id/btn_prev" |
| 70 | android:layout_width="wrap_content" |
| 71 | android:layout_height="wrap_content" |
| 72 | android:layout_gravity="center" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 73 | android:src="@drawable/ic_media_previous" |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 74 | android:clickable="true" |
| 75 | android:background="?android:attr/selectableItemBackground" |
Jim Miller | 67e043d | 2011-10-10 17:48:01 -0700 | [diff] [blame] | 76 | android:padding="10dip" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 77 | android:contentDescription="@string/keyguard_accessibility_transport_prev_description"/> |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 78 | </FrameLayout> |
| 79 | <FrameLayout |
| 80 | android:layout_width="wrap_content" |
| 81 | android:layout_height="wrap_content" |
| 82 | android:layout_weight="1"> |
| 83 | <ImageView |
| 84 | android:id="@+id/btn_play" |
| 85 | android:layout_width="wrap_content" |
| 86 | android:layout_height="wrap_content" |
| 87 | android:layout_gravity="center" |
| 88 | android:clickable="true" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 89 | android:src="@drawable/ic_media_play" |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 90 | android:background="?android:attr/selectableItemBackground" |
Jim Miller | 67e043d | 2011-10-10 17:48:01 -0700 | [diff] [blame] | 91 | android:padding="10dip" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 92 | android:contentDescription="@string/keyguard_accessibility_transport_play_description"/> |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 93 | </FrameLayout> |
| 94 | <FrameLayout |
| 95 | android:layout_width="wrap_content" |
| 96 | android:layout_height="wrap_content" |
| 97 | android:layout_weight="1"> |
| 98 | <ImageView |
| 99 | android:id="@+id/btn_next" |
| 100 | android:layout_width="wrap_content" |
| 101 | android:layout_height="wrap_content" |
| 102 | android:layout_gravity="center" |
| 103 | android:clickable="true" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 104 | android:src="@drawable/ic_media_next" |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 105 | android:background="?android:attr/selectableItemBackground" |
Jim Miller | 67e043d | 2011-10-10 17:48:01 -0700 | [diff] [blame] | 106 | android:padding="10dip" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 107 | android:contentDescription="@string/keyguard_accessibility_transport_next_description"/> |
Jim Miller | 1c18828 | 2011-08-08 22:27:58 -0700 | [diff] [blame] | 108 | </FrameLayout> |
| 109 | </LinearLayout> |
| 110 | </LinearLayout> |
Jim Miller | 6b05d58 | 2011-07-18 13:09:59 -0700 | [diff] [blame] | 111 | |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 112 | </com.android.keyguard.KeyguardTransportControlView> |