+++ /dev/null
-<?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.
--->
-
-<nine-patch xmlns:android="http://schemas.android.com/apk/res/android"
- android:src="@drawable/appwidget_inner"
- android:dither="true"
-/>
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"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="horizontal"
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
+ <LinearLayout
android:id="@+id/album_appwidget"
- android:layout_width="fill_parent"
+ android:layout_width="0dip"
+ android:layout_weight="3"
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"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="@drawable/appwidget_button_left"
+ android:paddingLeft="18dip"
+ android:paddingRight="8dip"
>
<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:fadingEdgeLength="10dip"
android:ellipsize="none"
/>
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:fadingEdgeLength="10dip"
android:ellipsize="none"
/>
-
</LinearLayout>
+
+ <ImageView
+ android:layout_width="1dip"
+ android:layout_height="fill_parent"
+ android:background="@drawable/appwidget_divider"
+ />
+
+ <ImageButton
+ android:id="@+id/control_play"
+ android:layout_width="0dip"
+ android:layout_weight="1"
+ android:layout_height="fill_parent"
+ android:layout_marginLeft="2dip"
+ android:src="@drawable/ic_appwidget_music_play"
+ android:background="@drawable/appwidget_button_center"
+ android:scaleType="center"
+ />
+
+ <ImageView
+ android:layout_width="1dip"
+ android:layout_height="fill_parent"
+ android:background="@drawable/appwidget_divider"
+ />
+
+ <ImageButton
+ android:id="@+id/control_next"
+ android:layout_width="0dip"
+ android:layout_weight="1"
+ android:layout_height="fill_parent"
+ android:src="@drawable/ic_appwidget_music_next"
+ android:background="@drawable/appwidget_button_right"
+ android:scaleType="center"
+ />
-</RelativeLayout>
+</LinearLayout>