altosdroid: Add missing xml files for preferences demo
authorKeith Packard <keithp@keithp.com>
Wed, 18 Dec 2013 04:58:51 +0000 (20:58 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 18 Dec 2013 04:58:51 +0000 (20:58 -0800)
altosdroid/res/values/array.xml [new file with mode: 0644]
altosdroid/res/values/arrays.xml [new file with mode: 0644]
altosdroid/res/xml/preferences.xml [new file with mode: 0644]

diff --git a/altosdroid/res/values/array.xml b/altosdroid/res/values/array.xml
new file mode 100644 (file)
index 0000000..e906e16
--- /dev/null
@@ -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 (file)
index 0000000..8791015
--- /dev/null
@@ -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 (file)
index 0000000..e33768f
--- /dev/null
@@ -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