diff options
| author | Antoine Cellerier <dionoea@videolan.org> | 2011-01-29 20:47:32 +0000 |
|---|---|---|
| committer | Antoine Cellerier <dionoea@videolan.org> | 2011-01-29 20:47:32 +0000 |
| commit | c0c769c5a86c56c2ab2c9e88515a64da98575182 (patch) | |
| tree | 24e84b2d146bf3da39d93983d5656061e3c88ecb /android/res/layout | |
| parent | e9749d1b93f23b3bc36305ad1d39ca5e5c0cb3a8 (diff) | |
| download | rockbox-c0c769c5a86c56c2ab2c9e88515a64da98575182.zip rockbox-c0c769c5a86c56c2ab2c9e88515a64da98575182.tar.gz rockbox-c0c769c5a86c56c2ab2c9e88515a64da98575182.tar.bz2 rockbox-c0c769c5a86c56c2ab2c9e88515a64da98575182.tar.xz | |
Add widgets to android port.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29170 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'android/res/layout')
| -rw-r--r-- | android/res/layout/appwidget_2x2.xml | 42 | ||||
| -rw-r--r-- | android/res/layout/appwidget_4x1.xml | 31 | ||||
| -rw-r--r-- | android/res/layout/appwidget_configure.xml | 40 |
3 files changed, 113 insertions, 0 deletions
diff --git a/android/res/layout/appwidget_2x2.xml b/android/res/layout/appwidget_2x2.xml new file mode 100644 index 0000000..a29f416 --- /dev/null +++ b/android/res/layout/appwidget_2x2.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/layout/appwidget_4x1.xml b/android/res/layout/appwidget_4x1.xml new file mode 100644 index 0000000..0d2d6df --- /dev/null +++ b/android/res/layout/appwidget_4x1.xml @@ -0,0 +1,31 @@ +<?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="horizontal" + android:gravity="center" + android:background="@drawable/appwidget_background"> + <!-- style="@style/appwidget_background"--> + + <Button android:id="@+id/infoDisplay" + style="@style/appwidget_infodisplay" + android:layout_height="fill_parent" + android:text="@string/appwidget_infoDisplay" /> + <ImageButton android:id="@+id/prev" + style="@style/appwidget_button" + android:layout_height="fill_parent" + android:src="@drawable/appwidget_prev" /> + <ImageButton android:id="@+id/stop" + style="@style/appwidget_button" + android:layout_height="fill_parent" + android:src="@drawable/appwidget_stop" /> + <ImageButton android:id="@+id/playPause" + style="@style/appwidget_button" + android:layout_height="fill_parent" + android:src="@drawable/appwidget_play" /> + <ImageButton android:id="@+id/next" + style="@style/appwidget_button" + android:layout_height="fill_parent" + android:src="@drawable/appwidget_next" /> +</LinearLayout> diff --git a/android/res/layout/appwidget_configure.xml b/android/res/layout/appwidget_configure.xml new file mode 100644 index 0000000..8dd0ff2 --- /dev/null +++ b/android/res/layout/appwidget_configure.xml @@ -0,0 +1,40 @@ +<?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="wrap_content" + android:orientation="vertical"> + + <ImageView android:id="@+id/logo" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="centerInside" + android:src="@drawable/rockbox" /> + + <TextView android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/appwidget_configure_instructions"/> + + <CheckBox android:id="@+id/enable_prev" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/appwidget_configure_prev"/> + <CheckBox android:id="@+id/enable_stop" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/appwidget_configure_stop"/> + <CheckBox android:id="@+id/enable_playpause" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/appwidget_configure_playpause"/> + <CheckBox android:id="@+id/enable_next" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/appwidget_configure_next"/> + + <Button android:id="@+id/confirm" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/appwidget_configure_confirm"/> +</LinearLayout> + |