OSDN Git Service

Automated import from //branches/cupcake/...@142098,142098
[android-x86/packages-apps-Music.git] / res / layout-finger / album_appwidget.xml
index dc89460..7c2c409 100644 (file)
 -->
 
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:id="@+id/album_appwidget"
     android:layout_width="fill_parent"
-    android:layout_height="fill_parent"
+    android:layout_height="wrap_content"
+    android:background="@drawable/appwidget_bg"
     >
 
-    <FrameLayout
-        android:layout_width="fill_parent"
-        android:layout_height="wrap_content"
-        android:layout_centerVertical="true"
-        android:layout_marginLeft="9dip"
-        android:layout_marginRight="10dip"
-        android:background="@drawable/appwidget_bg"
-        >
-
-        <LinearLayout
-            android:layout_width="fill_parent"
-            android:layout_height="wrap_content"
-            android:orientation="vertical"
-            android:background="@drawable/appwidget_inner"
-            >
-
-            <TextView
-                android:id="@+id/title"
-                android:layout_width="fill_parent"
-                android:layout_height="0dip"
-                android:layout_weight="1"
-                android:gravity="bottom|left"
-                android:textColor="@color/appwidget_text"
-                android:textStyle="bold"
-                android:textSize="11sp"
-                android:singleLine="true"
-                android:ellipsize="marquee"
-                android:fadingEdge="horizontal"
-                />
-
-            <TextView
-                android:id="@+id/artist"
-                android:layout_width="fill_parent"
-                android:layout_height="0dip"
-                android:layout_weight="1"
-                android:gravity="top|left"
-                android:textColor="@color/appwidget_text"
-                android:textSize="11dip"
-                android:singleLine="true"
-                android:ellipsize="marquee"
-                android:fadingEdge="horizontal"
-                />
-
-        </LinearLayout>
-
-    </FrameLayout>
+    <ImageButton
+        android:id="@+id/control_play"
+        android:layout_width="48dip"
+        android:layout_height="fill_parent"
+        android:src="@drawable/appwidget_play"
+        android:background="@android:color/transparent"
+        android:scaleType="center"
+        />
 
     <ImageButton
         android:id="@+id/control_next"
-        android:layout_width="wrap_content"
+        android:layout_width="35dip"
         android:layout_height="fill_parent"
         android:layout_alignParentRight="true"
-        android:layout_centerVertical="true"
-        android:paddingRight="25dip"
-        android:paddingLeft="10dip"
         android:src="@drawable/appwidget_next"
         android:background="@android:color/transparent"
+        android:scaleType="center"
         />
 
-    <ImageButton
-        android:id="@+id/control_play"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_alignParentLeft="true"
-        android:layout_alignParentBottom="true"
-        android:paddingLeft="16dip"
-        android:paddingRight="10dip"
-        android:paddingBottom="3dip"
-        android:paddingTop="10dip"
-        android:src="@drawable/appwidget_play"
-        android:background="@android:color/transparent"
-        />
+    <RelativeLayout
+        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"
+        >
+
+        <com.android.server.status.AnimatedImageView
+            android:id="@+id/led"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_marginBottom="5dip"
+            android:layout_marginRight="10dip"
+            android:layout_alignParentBottom="true"
+            android:layout_alignParentRight="true"
+            android:src="@drawable/appwidget_led0"
+            />
+
+        <ImageView
+            android:visibility="invisible"
+            android:id="@+id/anchor"
+            android:layout_width="0dip"
+            android:layout_height="7dip"
+            android:layout_centerVertical="true"
+            />
+
+        <TextView
+            android:id="@+id/title"
+            android:layout_width="fill_parent"
+            android:layout_height="wrap_content"
+            android:layout_alignBottom="@id/anchor"
+            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_below="@id/anchor"
+            android:layout_marginLeft="10dip"
+            android:layout_marginRight="40dip"
+            android:textColor="@color/appwidget_text"
+            android:textSize="14sp"
+            android:singleLine="true"
+            android:fadingEdge="horizontal"
+            android:fadingEdgeLength="20dip"
+            android:ellipsize="none"
+            />
+
+    </RelativeLayout>
 
 </RelativeLayout>