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 | |
| 17 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:id="@+id/album_gadget" |
| 19 | android:layout_width="fill_parent" |
| 20 | android:layout_height="fill_parent" |
| 21 | > |
| 22 | |
| 23 | <FrameLayout |
| 24 | android:layout_width="fill_parent" |
| 25 | android:layout_height="wrap_content" |
| 26 | android:layout_centerVertical="true" |
| 27 | android:layout_marginLeft="9dip" |
| 28 | android:layout_marginRight="10dip" |
| 29 | android:background="@drawable/gadget_bg" |
| 30 | > |
| 31 | |
| 32 | <LinearLayout |
| 33 | android:layout_width="fill_parent" |
| 34 | android:layout_height="wrap_content" |
| 35 | android:orientation="vertical" |
| 36 | android:background="@drawable/gadget_inner" |
| 37 | > |
| 38 | |
| 39 | <TextView |
| 40 | android:id="@+id/title" |
| 41 | android:layout_width="fill_parent" |
| 42 | android:layout_height="0dip" |
| 43 | android:layout_weight="1" |
| 44 | android:gravity="bottom|left" |
| 45 | android:textColor="@color/gadget_text" |
| 46 | android:textStyle="bold" |
| 47 | android:textSize="11sp" |
| 48 | android:singleLine="true" |
| 49 | android:ellipsize="marquee" |
| 50 | android:fadingEdge="horizontal" |
| 51 | /> |
| 52 | |
| 53 | <TextView |
| 54 | android:id="@+id/artist" |
| 55 | android:layout_width="fill_parent" |
| 56 | android:layout_height="0dip" |
| 57 | android:layout_weight="1" |
| 58 | android:gravity="top|left" |
| 59 | android:textColor="@color/gadget_text" |
| 60 | android:textSize="11dip" |
| 61 | android:singleLine="true" |
| 62 | android:ellipsize="marquee" |
| 63 | android:fadingEdge="horizontal" |
| 64 | /> |
| 65 | |
| 66 | </LinearLayout> |
| 67 | |
| 68 | </FrameLayout> |
| 69 | |
| 70 | <ImageButton |
| 71 | android:id="@+id/control_next" |
| 72 | android:layout_width="wrap_content" |
| 73 | android:layout_height="fill_parent" |
| 74 | android:layout_alignParentRight="true" |
| 75 | android:layout_centerVertical="true" |
| 76 | android:paddingRight="25dip" |
| 77 | android:paddingLeft="10dip" |
| 78 | android:src="@drawable/gadget_next" |
| 79 | android:background="@android:color/transparent" |
| 80 | /> |
| 81 | |
| 82 | <ImageButton |
| 83 | android:id="@+id/control_play" |
| 84 | android:layout_width="wrap_content" |
| 85 | android:layout_height="wrap_content" |
| 86 | android:layout_alignParentLeft="true" |
| 87 | android:layout_alignParentBottom="true" |
| 88 | android:paddingLeft="16dip" |
| 89 | android:paddingRight="10dip" |
| 90 | android:paddingBottom="3dip" |
| 91 | android:paddingTop="10dip" |
| 92 | android:src="@drawable/gadget_play" |
| 93 | android:background="@android:color/transparent" |
| 94 | /> |
| 95 | |
| 96 | </RelativeLayout> |