summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-17 20:58:51 -0800
committerKeith Packard <keithp@keithp.com>2013-12-17 20:58:51 -0800
commitb24e5e08574c46637f6301d839a2f9ca1ca00cd2 (patch)
tree72b4ce2d3d321caf26f36b07f757a07b327acff5
parent5e89fe4dc43110db65949b704383eac37cb5652a (diff)
altosdroid: Add missing xml files for preferences demo
-rw-r--r--altosdroid/res/values/array.xml28
-rw-r--r--altosdroid/res/values/arrays.xml29
-rw-r--r--altosdroid/res/xml/preferences.xml20
3 files changed, 77 insertions, 0 deletions
diff --git a/altosdroid/res/values/array.xml b/altosdroid/res/values/array.xml
new file mode 100644
index 00000000..e906e169
--- /dev/null
+++ b/altosdroid/res/values/array.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright © 2012-2013 Mike Beattie <mike@ethernal.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2 of the License.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+-->
+<resources>
+
+ <array name="pref_syncConnectionTypes_entries">
+ <item>Hello</item>
+ <item>World</item>
+ </array>
+ <array name="pref_syncConnectionTypes_values">
+ <item>foo</item>
+ <item>bar</item>
+ </array>
+</resources>
diff --git a/altosdroid/res/values/arrays.xml b/altosdroid/res/values/arrays.xml
new file mode 100644
index 00000000..8791015b
--- /dev/null
+++ b/altosdroid/res/values/arrays.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright © 2012-2013 Mike Beattie <mike@ethernal.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2 of the License.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+-->
+<resources>
+ <string-array name="listArray">
+ <item>Headings</item>
+ <item>Headings and Details</item>
+ <item>All Data</item>
+ </string-array>
+ <string-array name="listValues">
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ </string-array>
+</resources>
diff --git a/altosdroid/res/xml/preferences.xml b/altosdroid/res/xml/preferences.xml
new file mode 100644
index 00000000..e33768fc
--- /dev/null
+++ b/altosdroid/res/xml/preferences.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<PreferenceScreen
+ xmlns:android="http://schemas.android.com/apk/res/android">
+ <CheckBoxPreference android:title="@string/pref_units_title"
+ android:key="@string/pref_units"
+ android:summary="@string/pref_units_summary" />
+ <EditTextPreference android:title="Your Name"
+ android:key="username"
+ android:summary="Please provide your username"></EditTextPreference>
+ <CheckBoxPreference android:title="Application Updates"
+ android:defaultValue="false"
+ android:summary="This option if selected will allow the application to check for latest versions."
+ android:key="applicationUpdates" />
+ <ListPreference android:title="Download Details"
+ android:summary="Select the kind of data that you would like to download"
+ android:key="downloadType"
+ android:defaultValue="1"
+ android:entries="@array/listArray"
+ android:entryValues="@array/listValues" />
+</PreferenceScreen> \ No newline at end of file