OSDN Git Service

auto import from //depot/cupcake/@132589
[android-x86/packages-apps-Music.git] / res / layout-land-finger / gadget.xml
diff --git a/res/layout-land-finger/gadget.xml b/res/layout-land-finger/gadget.xml
new file mode 100644 (file)
index 0000000..e3946f6
--- /dev/null
@@ -0,0 +1,137 @@
+<?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:id="@+id/album_gadget"
+    android:layout_width="220dip"
+    android:layout_height="220dip"
+    >
+
+    <ImageView
+        android:id="@+id/outline"
+        android:layout_width="220dip"
+        android:layout_height="220dip"
+        android:layout_alignParentTop="true"
+        android:layout_centerHorizontal="true"
+        android:src="@drawable/gadget_background"
+        />
+
+    <ImageView
+        android:id="@+id/artwork"
+        android:layout_width="182dip"
+        android:layout_height="182dip"
+        android:layout_alignParentTop="true"
+        android:layout_centerHorizontal="true"
+        android:layout_marginTop="22dip"
+        />
+
+    <ImageView
+        android:id="@+id/no_artwork"
+        android:layout_width="0dip"
+        android:layout_height="0dip"
+        android:visibility="gone"
+        />
+
+    <com.android.internal.widget.TextProgressBar
+        android:id="@+id/progress_group"
+        android:layout_width="0dip"
+        android:layout_height="0dip"
+        android:visibility="gone"
+        >
+
+        <Chronometer
+            android:id="@android:id/text1"
+            android:layout_width="0dip"
+            android:layout_height="0dip"
+            />
+
+        <ProgressBar
+            android:id="@android:id/progress"
+            android:layout_width="0dip"
+            android:layout_height="0dip"
+            />
+
+    </com.android.internal.widget.TextProgressBar>
+
+    <TextView
+        android:id="@+id/title"
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content"
+        android:layout_marginTop="60dip"
+        android:layout_marginLeft="40dip"
+        android:layout_marginRight="40dip"
+        android:layout_below="@id/progress_group"
+        android:textColor="@color/gadget_text"
+        android:textSize="14sp"
+        android:singleLine="true"
+        android:ellipsize="marquee"
+        android:fadingEdge="horizontal"
+        android:shadowColor="@color/gadget_text_shadow"
+        android:shadowRadius="2.75"
+        />
+
+    <TextView
+        android:id="@+id/artist"
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content"
+        android:layout_centerHorizontal="true"
+        android:layout_marginLeft="40dip"
+        android:layout_marginRight="40dip"
+        android:layout_marginBottom="7dip"
+        android:layout_below="@id/title"
+        android:textColor="@color/gadget_text"
+        android:textStyle="bold"
+        android:textSize="14sp"
+        android:singleLine="true"
+        android:ellipsize="marquee"
+        android:fadingEdge="horizontal"
+        android:shadowColor="@color/gadget_text_shadow"
+        android:shadowRadius="2.75"
+        />
+
+    <ImageButton
+        android:id="@+id/control_prev"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_below="@id/artist"
+        android:layout_alignParentLeft="true"
+        android:src="@drawable/gadget_prev"
+        android:background="@android:color/transparent"
+        />
+
+    <ImageButton
+        android:id="@+id/control_next"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_below="@id/artist"
+        android:layout_alignParentRight="true"
+        android:src="@drawable/gadget_next"
+        android:background="@android:color/transparent"
+        />
+
+    <ImageButton
+        android:id="@+id/control_play"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_centerHorizontal="true"
+        android:layout_below="@id/artist"
+        android:layout_marginTop="15dip"
+        android:nextFocusUp="@id/control_next"
+        android:src="@drawable/gadget_play"
+        android:background="@android:color/transparent"
+        />
+
+</RelativeLayout>