diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-02-27 20:47:44 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-02-27 20:47:44 +0000 |
commit | 883ff8507e42f7fbba6416e60fb116164219aa5f (patch) | |
tree | 3708181c7a19309f02bb4b93d073745c119338a2 /android/res | |
parent | 952d82b7bd20f1bef7f3c316ebeb71c0d1e6d20b (diff) |
Android: Show cover art in the widget (including option to hide it).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29437 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'android/res')
-rw-r--r-- | android/res/layout/appwidget_2x2.xml | 8 | ||||
-rw-r--r-- | android/res/layout/appwidget_3x3.xml | 6 | ||||
-rw-r--r-- | android/res/layout/appwidget_4x1.xml | 6 | ||||
-rw-r--r-- | android/res/layout/appwidget_configure.xml | 4 | ||||
-rw-r--r-- | android/res/values/strings.xml | 1 |
5 files changed, 20 insertions, 5 deletions
diff --git a/android/res/layout/appwidget_2x2.xml b/android/res/layout/appwidget_2x2.xml index a29f416b3d..113384f57b 100644 --- a/android/res/layout/appwidget_2x2.xml +++ b/android/res/layout/appwidget_2x2.xml @@ -8,10 +8,12 @@ android:background="@drawable/appwidget_background"> <!-- style="@style/appwidget_background"--> - <ImageView android:id="@+id/logo" + <ImageButton android:id="@+id/logo" + android:layout_marginTop="5dp" android:layout_width="fill_parent" - android:layout_height="40dp" - android:scaleType="centerInside" + android:layout_height="80dp" + android:scaleType="centerInside" + android:background="@drawable/appwidget_infodisplay_background" android:src="@drawable/rockbox" /> <Button android:id="@+id/infoDisplay" style="@style/appwidget_infodisplay" diff --git a/android/res/layout/appwidget_3x3.xml b/android/res/layout/appwidget_3x3.xml index a29f416b3d..b5be5356fa 100644 --- a/android/res/layout/appwidget_3x3.xml +++ b/android/res/layout/appwidget_3x3.xml @@ -8,10 +8,12 @@ android:background="@drawable/appwidget_background"> <!-- style="@style/appwidget_background"--> - <ImageView android:id="@+id/logo" + <ImageButton android:id="@+id/logo" + android:layout_marginTop="15dp" android:layout_width="fill_parent" - android:layout_height="40dp" + android:layout_height="130dp" android:scaleType="centerInside" + android:background="@drawable/appwidget_infodisplay_background" android:src="@drawable/rockbox" /> <Button android:id="@+id/infoDisplay" style="@style/appwidget_infodisplay" diff --git a/android/res/layout/appwidget_4x1.xml b/android/res/layout/appwidget_4x1.xml index 0d2d6df010..db7ebb5d0d 100644 --- a/android/res/layout/appwidget_4x1.xml +++ b/android/res/layout/appwidget_4x1.xml @@ -8,6 +8,12 @@ android:background="@drawable/appwidget_background"> <!-- style="@style/appwidget_background"--> + <ImageButton android:id="@+id/logo" + android:layout_width="68dp" + android:layout_height="fill_parent" + android:scaleType="centerInside" + android:background="@drawable/appwidget_infodisplay_background" + android:src="@drawable/rockbox" /> <Button android:id="@+id/infoDisplay" style="@style/appwidget_infodisplay" android:layout_height="fill_parent" diff --git a/android/res/layout/appwidget_configure.xml b/android/res/layout/appwidget_configure.xml index 8dd0ff2144..1f33afe61e 100644 --- a/android/res/layout/appwidget_configure.xml +++ b/android/res/layout/appwidget_configure.xml @@ -15,6 +15,10 @@ android:layout_height="wrap_content" android:text="@string/appwidget_configure_instructions"/> + <CheckBox android:id="@+id/enable_aa" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/appwidget_configure_albumart"/> <CheckBox android:id="@+id/enable_prev" android:layout_width="fill_parent" android:layout_height="wrap_content" diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml index 9e818319d4..c92e955edf 100644 --- a/android/res/values/strings.xml +++ b/android/res/values/strings.xml @@ -19,6 +19,7 @@ <!-- Widget configuration --> <string name="appwidget_configure_instructions">Please chose elements to display in widget.</string> +<string name="appwidget_configure_albumart">Cover Art</string> <string name="appwidget_configure_prev">Prev Button</string> <string name="appwidget_configure_stop">Stop Button</string> <string name="appwidget_configure_playpause">Play/Pause Button</string> |