summaryrefslogtreecommitdiffstats
path: root/android/res
diff options
context:
space:
mode:
Diffstat (limited to 'android/res')
-rw-r--r--android/res/layout/appwidget_3x3.xml42
-rw-r--r--android/res/values/strings.xml1
-rw-r--r--android/res/xml/appwidget_provider_3x3.xml8
3 files changed, 51 insertions, 0 deletions
diff --git a/android/res/layout/appwidget_3x3.xml b/android/res/layout/appwidget_3x3.xml
new file mode 100644
index 0000000000..a29f416b3d
--- /dev/null
+++ b/android/res/layout/appwidget_3x3.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical"
+ android:gravity="center"
+ android:background="@drawable/appwidget_background">
+ <!-- style="@style/appwidget_background"-->
+
+ <ImageView android:id="@+id/logo"
+ android:layout_width="fill_parent"
+ android:layout_height="40dp"
+ android:scaleType="centerInside"
+ android:src="@drawable/rockbox" />
+ <Button android:id="@+id/infoDisplay"
+ style="@style/appwidget_infodisplay"
+ android:layout_width="fill_parent"
+ android:text="@string/appwidget_infoDisplay" />
+ <LinearLayout android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="0"
+ android:gravity="center"
+ android:orientation="horizontal">
+ <ImageButton android:id="@+id/prev"
+ style="@style/appwidget_button"
+ android:layout_weight="1"
+ android:src="@drawable/appwidget_prev" />
+ <ImageButton android:id="@+id/stop"
+ style="@style/appwidget_button"
+ android:layout_weight="1"
+ android:src="@drawable/appwidget_stop" />
+ <ImageButton android:id="@+id/playPause"
+ style="@style/appwidget_button"
+ android:layout_weight="1"
+ android:src="@drawable/appwidget_play" />
+ <ImageButton android:id="@+id/next"
+ style="@style/appwidget_button"
+ android:layout_weight="1"
+ android:src="@drawable/appwidget_next" />
+ </LinearLayout>
+</LinearLayout>
diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml
index 5ff2a6dc20..9e818319d4 100644
--- a/android/res/values/strings.xml
+++ b/android/res/values/strings.xml
@@ -14,6 +14,7 @@
<!-- Widget -->
<string name="appwidget_label_4x1">Rockbox (line)</string>
<string name="appwidget_label_2x2">Rockbox (square)</string>
+<string name="appwidget_label_3x3">Rockbox (big square)</string>
<string name="appwidget_infoDisplay">Touch to launch app</string>
<!-- Widget configuration -->
diff --git a/android/res/xml/appwidget_provider_3x3.xml b/android/res/xml/appwidget_provider_3x3.xml
new file mode 100644
index 0000000000..50ad42930f
--- /dev/null
+++ b/android/res/xml/appwidget_provider_3x3.xml
@@ -0,0 +1,8 @@
+<!-- cell size is (number of cells * 74) - 2 dp according to http://developer.android.com/guide/topics/appwidgets/index.html#MetaData -->
+<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
+ android:minWidth="220dp"
+ android:minHeight="220dp"
+ android:updatePeriodMillis="86400000"
+ android:initialLayout="@layout/appwidget_3x3"
+ android:configure="org.rockbox.widgets.RockboxWidgetConfigure">
+</appwidget-provider>