| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2009 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="@dimen/appwidget_width" |
| android:layout_height="@dimen/appwidget_height" |
| android:background="@drawable/appwidget_bg"> |
| |
| <ImageButton |
| android:id="@+id/control_play" |
| android:layout_width="48dip" |
| android:layout_height="fill_parent" |
| android:layout_marginLeft="2dip" |
| android:src="@drawable/appwidget_play" |
| android:background="@android:color/transparent" |
| android:scaleType="center" |
| /> |
| |
| <ImageButton |
| android:id="@+id/control_next" |
| android:layout_width="35dip" |
| android:layout_height="fill_parent" |
| android:layout_alignParentRight="true" |
| android:src="@drawable/appwidget_next" |
| android:background="@android:color/transparent" |
| android:scaleType="center" |
| /> |
| |
| <LinearLayout |
| android:id="@+id/album_appwidget" |
| android:layout_width="fill_parent" |
| android:layout_height="fill_parent" |
| android:layout_toRightOf="@id/control_play" |
| android:layout_toLeftOf="@id/control_next" |
| android:background="@drawable/appwidget_inner_dither" |
| android:orientation="vertical" |
| android:gravity="center_vertical" |
| > |
| |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginLeft="10dip" |
| android:layout_marginRight="20dip" |
| android:textColor="@color/appwidget_text" |
| android:textStyle="bold" |
| android:textSize="18sp" |
| android:singleLine="true" |
| android:fadingEdge="horizontal" |
| android:fadingEdgeLength="20dip" |
| android:ellipsize="none" |
| /> |
| |
| <TextView |
| android:id="@+id/artist" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginLeft="10dip" |
| android:layout_marginRight="20dip" |
| android:textColor="@color/appwidget_text" |
| android:textSize="14sp" |
| android:singleLine="true" |
| android:fadingEdge="horizontal" |
| android:fadingEdgeLength="20dip" |
| android:ellipsize="none" |
| /> |
| |
| </LinearLayout> |
| |
| </RelativeLayout> |