Split preferences into different screens to make them simpler, and enable and disable screens depending on options selected.

This commit is contained in:
Graham Jones
2015-11-17 17:07:13 +00:00
parent f5e5c7e093
commit 16a9207ded
8 changed files with 446 additions and 3 deletions

View File

@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<ListPreference
android:key="DataSource"
android:title="Select Data Source"
android:summary="Select whether to use a Pebble Watch or network connection as the seizure detector data source."
android:entries="@array/datasource_list"
android:entryValues="@array/datasource_list_values"
android:dialogTitle="Select Data Source" />
<CheckBoxPreference
android:defaultValue="true"
android:key="LogAlarms"
android:summary="Log Alarm events to SD Card"
android:title="Log Alarm events to SD Card" />
<CheckBoxPreference
android:defaultValue="false"
android:key="LogData"
android:summary="Log Data to SD Card Regularly"
android:title="Log Data to SD Card" />
<EditTextPreference
android:key="FaultTimerPeriod"
android:title="Fault Timer Duration (sec)"
android:summary="Duration that fault alarms are muted before initiating."
android:numeric="integer"
android:defaultValue="30" />
<CheckBoxPreference
android:defaultValue="false"
android:key="PreventSleep"
android:summary="Prevent the screen from blanking while the application is running."
android:title="Prevent the screen from blanking." />
<EditTextPreference
android:defaultValue="1000"
android:key="UpdatePeriod"
android:summary="Display update period in miliseconds."
android:title="Display Update Period (ms)." />
<CheckBoxPreference
android:defaultValue="true"
android:key="UseIpCamera"
android:summary="Use IP Camera to View Images"
android:title="Enable IP Camera" />
</PreferenceScreen>