aboutsummaryrefslogtreecommitdiffstats
path: root/app/res/xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/res/xml')
-rw-r--r--app/res/xml/debug_settings.xml18
-rw-r--r--app/res/xml/general_settings.xml52
-rw-r--r--app/res/xml/settings.xml12
-rw-r--r--app/res/xml/settings_headers.xml17
4 files changed, 80 insertions, 19 deletions
diff --git a/app/res/xml/debug_settings.xml b/app/res/xml/debug_settings.xml
new file mode 100644
index 0000000..8aa09f4
--- /dev/null
+++ b/app/res/xml/debug_settings.xml
@@ -0,0 +1,18 @@
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <ListPreference
+ android:id="@+id/pref_debug_prio"
+ android:defaultValue="3"
+ android:entries="@array/debug_priority_names"
+ android:entryValues="@array/debug_priority"
+ android:key="debug_priority"
+ android:title="Log priority"
+ android:divider="@drawable/divider_shape" />
+
+ <Preference android:title="Reset back-end engine"
+ android:key="pref_kill_backend"
+ android:summary="@string/summary_kill_backend"
+ android:background="@drawable/button_bg"
+ android:textColor="@color/ThemeLight" />
+
+</PreferenceScreen> \ No newline at end of file
diff --git a/app/res/xml/general_settings.xml b/app/res/xml/general_settings.xml
new file mode 100644
index 0000000..d836b67
--- /dev/null
+++ b/app/res/xml/general_settings.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <EditTextPreference
+ android:id="@+id/pref_dns1"
+ android:defaultValue="@string/dns1_default"
+ android:key="dns1"
+ android:summary="Set the IPv4 address of the primary DNS server.\nIf left blank, RepWifi will try to use the default gateway as a DNS resolver."
+ android:title="DNS server #1"
+ android:textColor="@color/ThemeLight"
+ android:background="@color/ThemeDark"
+ android:padding="5dp"/>
+
+
+ <EditTextPreference
+ android:id="@+id/pref_dns2"
+ android:defaultValue="@string/dns2_default"
+ android:key="dns2"
+ android:summary="Set the IPv4 address of the secondary DNS server.\nIf the primary address is blank, this will be ignored."
+ android:title="DNS server #2"
+ android:textColor="@color/ThemeLight"
+ android:background="@color/ThemeDark"
+ android:padding="5dp"/>
+
+ <CheckBoxPreference
+ android:id="@+id/pref_autoconnect"
+ android:defaultValue="false"
+ android:key="enable_autoconnect"
+ android:summary="When the WiFi dongle is attached, RepWifi connects automatically to reachable known networks.\n(Experimental)."
+ android:title="Enable Autoconnect" />
+
+ <CheckBoxPreference
+ android:id="@+id/pref_progbar"
+ android:defaultValue="true"
+ android:key="enable_progbar"
+ android:summary="Show an animated progress bar while doing long background tasks.\nKeep it disabled to (hopefully) save some extra power for the WiFi dongle."
+ android:title="Animated progress bar" />
+
+ <CheckBoxPreference
+ android:id="@+id/pref_autostart"
+ android:defaultValue="false"
+ android:key="enable_autostart"
+ android:summary="If checked, RepWifi is started automatically on system's startup."
+ android:title="Enable Start at Boot" />
+
+ <Preference android:title="Restore Defaults"
+ android:key="pref_restore_default"
+ android:summary="click to restore default settings\n(then return to main screen to apply the reset)"
+ android:background="@drawable/button_bg"
+ android:textColor="@color/ThemeLight" />
+
+</PreferenceScreen> \ No newline at end of file
diff --git a/app/res/xml/settings.xml b/app/res/xml/settings.xml
deleted file mode 100644
index f53f00f..0000000
--- a/app/res/xml/settings.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
-
- <ListPreference
- android:key="debug_priority"
- android:title="Log priority"
- android:id="@+id/pref_debug_prio"
- android:entries="@array/debug_priority_names"
- android:entryValues="@array/debug_priority"
- android:defaultValue="3" />
-
-
-</PreferenceScreen> \ No newline at end of file
diff --git a/app/res/xml/settings_headers.xml b/app/res/xml/settings_headers.xml
index d2212da..50f7436 100644
--- a/app/res/xml/settings_headers.xml
+++ b/app/res/xml/settings_headers.xml
@@ -1,11 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
+<preference-headers xmlns:android="http://schemas.android.com/apk/res/android" >
-<preference-headers
- xmlns:android="http://schemas.android.com/apk/res/android">
-
- <header
- android:fragment="fil.libre.repwifiapp.activities.SettingsActivity$RepWifiFragment"
- android:title="Debug"
- android:summary="set debugging variables" />
+ <header
+ android:fragment="fil.libre.repwifiapp.activities.SettingsActivity$GeneralSettingFragment"
+ android:summary="set general options"
+ android:title="Options" />
+
+ <header
+ android:fragment="fil.libre.repwifiapp.activities.SettingsActivity$DebugSettingFragment"
+ android:summary="set advanced options and debug variables"
+ android:title="Advanced &amp; Debug" />
</preference-headers> \ No newline at end of file