The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2009 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 | |
Mike Cleron | a0fcf0f | 2009-10-26 23:29:38 -0700 | [diff] [blame] | 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Romain Guy | 5ae9f47 | 2010-01-08 15:07:04 -0800 | [diff] [blame] | 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="match_parent" |
Mike Cleron | a0fcf0f | 2009-10-26 23:29:38 -0700 | [diff] [blame] | 20 | android:orientation="horizontal" |
Jeff Sharkey | 7790a21 | 2009-08-06 21:41:42 -0700 | [diff] [blame] | 21 | android:background="@drawable/appwidget_bg"> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 22 | |
Mike Cleron | a0fcf0f | 2009-10-26 23:29:38 -0700 | [diff] [blame] | 23 | <LinearLayout |
Jeffrey Sharkey | 349c020 | 2009-03-24 21:27:02 -0700 | [diff] [blame] | 24 | android:id="@+id/album_appwidget" |
Mike Cleron | a0fcf0f | 2009-10-26 23:29:38 -0700 | [diff] [blame] | 25 | android:layout_width="0dip" |
| 26 | android:layout_weight="3" |
Romain Guy | 5ae9f47 | 2010-01-08 15:07:04 -0800 | [diff] [blame] | 27 | android:layout_height="match_parent" |
Jeffrey Sharkey | 41e07cc | 2009-03-25 17:07:33 -0700 | [diff] [blame] | 28 | android:orientation="vertical" |
| 29 | android:gravity="center_vertical" |
Mike Cleron | a0fcf0f | 2009-10-26 23:29:38 -0700 | [diff] [blame] | 30 | android:clickable="true" |
| 31 | android:focusable="true" |
| 32 | android:background="@drawable/appwidget_button_left" |
| 33 | android:paddingLeft="18dip" |
| 34 | android:paddingRight="8dip" |
Jeffrey Sharkey | 349c020 | 2009-03-24 21:27:02 -0700 | [diff] [blame] | 35 | > |
| 36 | |
Jeffrey Sharkey | 349c020 | 2009-03-24 21:27:02 -0700 | [diff] [blame] | 37 | <TextView |
| 38 | android:id="@+id/title" |
Romain Guy | 5ae9f47 | 2010-01-08 15:07:04 -0800 | [diff] [blame] | 39 | android:layout_width="match_parent" |
Jeffrey Sharkey | 349c020 | 2009-03-24 21:27:02 -0700 | [diff] [blame] | 40 | android:layout_height="wrap_content" |
Jeffrey Sharkey | 349c020 | 2009-03-24 21:27:02 -0700 | [diff] [blame] | 41 | android:textColor="@color/appwidget_text" |
| 42 | android:textStyle="bold" |
| 43 | android:textSize="18sp" |
| 44 | android:singleLine="true" |
| 45 | android:fadingEdge="horizontal" |
Mike Cleron | a0fcf0f | 2009-10-26 23:29:38 -0700 | [diff] [blame] | 46 | android:fadingEdgeLength="10dip" |
Jeffrey Sharkey | 349c020 | 2009-03-24 21:27:02 -0700 | [diff] [blame] | 47 | android:ellipsize="none" |
| 48 | /> |
| 49 | |
| 50 | <TextView |
| 51 | android:id="@+id/artist" |
Romain Guy | 5ae9f47 | 2010-01-08 15:07:04 -0800 | [diff] [blame] | 52 | android:layout_width="match_parent" |
Jeffrey Sharkey | 349c020 | 2009-03-24 21:27:02 -0700 | [diff] [blame] | 53 | android:layout_height="wrap_content" |
Jeffrey Sharkey | 349c020 | 2009-03-24 21:27:02 -0700 | [diff] [blame] | 54 | android:textColor="@color/appwidget_text" |
| 55 | android:textSize="14sp" |
| 56 | android:singleLine="true" |
| 57 | android:fadingEdge="horizontal" |
Mike Cleron | a0fcf0f | 2009-10-26 23:29:38 -0700 | [diff] [blame] | 58 | android:fadingEdgeLength="10dip" |
Jeffrey Sharkey | 349c020 | 2009-03-24 21:27:02 -0700 | [diff] [blame] | 59 | android:ellipsize="none" |
| 60 | /> |
Jeffrey Sharkey | 41e07cc | 2009-03-25 17:07:33 -0700 | [diff] [blame] | 61 | </LinearLayout> |
Mike Cleron | a0fcf0f | 2009-10-26 23:29:38 -0700 | [diff] [blame] | 62 | |
| 63 | <ImageView |
| 64 | android:layout_width="1dip" |
Romain Guy | 5ae9f47 | 2010-01-08 15:07:04 -0800 | [diff] [blame] | 65 | android:layout_height="match_parent" |
Mike Cleron | a0fcf0f | 2009-10-26 23:29:38 -0700 | [diff] [blame] | 66 | android:background="@drawable/appwidget_divider" |
| 67 | /> |
| 68 | |
| 69 | <ImageButton |
| 70 | android:id="@+id/control_play" |
| 71 | android:layout_width="0dip" |
| 72 | android:layout_weight="1" |
Romain Guy | 5ae9f47 | 2010-01-08 15:07:04 -0800 | [diff] [blame] | 73 | android:layout_height="match_parent" |
Mike Cleron | a0fcf0f | 2009-10-26 23:29:38 -0700 | [diff] [blame] | 74 | android:src="@drawable/ic_appwidget_music_play" |
| 75 | android:background="@drawable/appwidget_button_center" |
| 76 | android:scaleType="center" |
| 77 | /> |
Jeffrey Sharkey | 349c020 | 2009-03-24 21:27:02 -0700 | [diff] [blame] | 78 | |
Mike Cleron | a0fcf0f | 2009-10-26 23:29:38 -0700 | [diff] [blame] | 79 | <ImageView |
| 80 | android:layout_width="1dip" |
Romain Guy | 5ae9f47 | 2010-01-08 15:07:04 -0800 | [diff] [blame] | 81 | android:layout_height="match_parent" |
Mike Cleron | a0fcf0f | 2009-10-26 23:29:38 -0700 | [diff] [blame] | 82 | android:background="@drawable/appwidget_divider" |
| 83 | /> |
| 84 | |
| 85 | <ImageButton |
| 86 | android:id="@+id/control_next" |
| 87 | android:layout_width="0dip" |
| 88 | android:layout_weight="1" |
Romain Guy | 5ae9f47 | 2010-01-08 15:07:04 -0800 | [diff] [blame] | 89 | android:layout_height="match_parent" |
Mike Cleron | a0fcf0f | 2009-10-26 23:29:38 -0700 | [diff] [blame] | 90 | android:src="@drawable/ic_appwidget_music_next" |
| 91 | android:background="@drawable/appwidget_button_right" |
| 92 | android:scaleType="center" |
| 93 | /> |
| 94 | |
| 95 | </LinearLayout> |