summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-08-25 08:03:05 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2010-08-25 08:03:05 +0200
commitbf24af1ed9808dc918dc81f0383103b6c51600a6 (patch)
treed899dae5a08c94b5184a558c16c9f743aee0c3c7 /res
parent8a8dc0a2ac4f3552568d9e14bf5ae121394b055c (diff)
downloadAndMAL-master.tar.gz
AndMAL-master.tar.xz
AndMAL-master.zip
refactoring, mangalist, settings (current problem: refresh other list after changing the settings)HEADmaster
Diffstat (limited to 'res')
-rw-r--r--res/drawable/ic_menu_close_clear_cancel.pngbin0 -> 5306 bytes
-rw-r--r--res/drawable/ic_menu_preferences.pngbin0 -> 2144 bytes
-rw-r--r--res/drawable/ic_menu_refresh.pngbin0 -> 2450 bytes
-rw-r--r--res/menu/menu.xml7
-rw-r--r--res/menu/settings.xml14
-rw-r--r--res/values/arrays.xml9
-rw-r--r--res/values/id.xml5
7 files changed, 35 insertions, 0 deletions
diff --git a/res/drawable/ic_menu_close_clear_cancel.png b/res/drawable/ic_menu_close_clear_cancel.png
new file mode 100644
index 0000000..78222ea
--- /dev/null
+++ b/res/drawable/ic_menu_close_clear_cancel.png
Binary files differ
diff --git a/res/drawable/ic_menu_preferences.png b/res/drawable/ic_menu_preferences.png
new file mode 100644
index 0000000..b8e7141
--- /dev/null
+++ b/res/drawable/ic_menu_preferences.png
Binary files differ
diff --git a/res/drawable/ic_menu_refresh.png b/res/drawable/ic_menu_refresh.png
new file mode 100644
index 0000000..77d70dd
--- /dev/null
+++ b/res/drawable/ic_menu_refresh.png
Binary files differ
diff --git a/res/menu/menu.xml b/res/menu/menu.xml
new file mode 100644
index 0000000..5dd2311
--- /dev/null
+++ b/res/menu/menu.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android"><item android:title="Refresh" android:id="@+id/menu_refresh" android:icon="@drawable/ic_menu_refresh"></item><item android:visible="false" android:enabled="true" android:id="@+id/menu_switch_anime" android:title="Animes">
+</item>
+<item android:visible="true" android:enabled="true" android:title="Mangas" android:id="@+id/menu_switch_manga"></item>
+<item android:visible="true" android:enabled="true" android:icon="@drawable/ic_menu_preferences" android:alphabeticShortcut="S" android:title="Settings..." android:id="@+id/menu_settings"></item>
+<item android:visible="true" android:enabled="true" android:icon="@drawable/ic_menu_close_clear_cancel" android:alphabeticShortcut="E" android:title="Exit" android:id="@+id/menu_exit"></item>
+</menu>
diff --git a/res/menu/settings.xml b/res/menu/settings.xml
new file mode 100644
index 0000000..8c646a7
--- /dev/null
+++ b/res/menu/settings.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+
+<PreferenceCategory android:title="myanimelist.net Account">
+ <EditTextPreference android:title="Username" android:key="MAL_USERNAME" android:summary="Please enter your myanimelist.net Username.">
+ </EditTextPreference>
+ <EditTextPreference android:title="Password" android:key="MAL_PASSWORD" android:password="true" android:summary="Please enter your myanimelist.net Password.">
+ </EditTextPreference>
+</PreferenceCategory>
+<!-- <PreferenceCategory android:title="Application">
+ <ListPreference android:title="Startscreen" android:key="STARTSCREEN" android:entries="@array/screen_names" android:entryValues="@array/screen_values" android:defaultValue="@raw/screen_anime">
+ </ListPreference>
+</PreferenceCategory>-->
+</PreferenceScreen>
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
new file mode 100644
index 0000000..d4e8db0
--- /dev/null
+++ b/res/values/arrays.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<resources><string-array name="screen_names"><item>Anime</item>
+<item>Manga</item>
+</string-array>
+
+<integer-array name="screen_values"><item>@raw/screen_anime</item>
+<item>@raw/screen_manga</item>
+</integer-array>
+</resources>
diff --git a/res/values/id.xml b/res/values/id.xml
new file mode 100644
index 0000000..065a6fb
--- /dev/null
+++ b/res/values/id.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<resources>
+<item name="screen_anime" type="raw" format="integer">0</item>
+<item name="screen_manga" type="raw" format="integer">1</item>
+</resources>