Commit b39951ea by Alex Brandt

Updated preference items.

The full skeleton of the preferences is now in place and ready to be
filled in.  Need to hook it all up and make sure that the preferences
get saved to Todoist.
parent 69b06752
......@@ -52,7 +52,7 @@
</intent-filter>
</activity>
<activity android:name=".preferences.TodoistPreferences"
android:label="@string/preferences_title"
android:label="@string/title_todoist_preferences"
>
<intent-filter>
<action android:name=".preferences.TodoistPreferences" />
......
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="preferences_title">Todoist Preferences</string>
<string name="key_todoist_preferences">todoist_preferences</string>
<string name="title_todoist_preferences">Todoist Preferences</string>
<string name="key_todoist_general_preferences">todoist_general_preferences</string>
<string name="title_todoist_general_preferences">General Preferences</string>
<string name="key_todoist_start_page">todoist_general_start_page</string>
<string name="title_todoist_start_page">Start Page</string>
<string-array name="entries_todoist_start_page">
<item>Blank</item>
<item>Info Page</item>
<item>Today and Overdue</item>
<item>Overdue, Today and Tomorrow</item>
<item>7 Days and Overdue</item>
<!-- TODO This adds an edit box to take the custom query. -->
<item>Custom Query</item>
<!-- TODO Projects added to this list? -->
</string-array>
<string name="default_todoist_start_page">Info Page</string>
<string name="key_todoist_date_format">todoist_general_date_format</string>
<string name="title_todoist_date_format">Date Format</string>
<string-array name="entries_todoist_date_format">
<item>DD-MM-YYYY</item>
<item>MM-DD-YYYY</item>
</string-array>
<string name="default_todoist_date_format">MM-DD-YYYY</string>
<string name="key_todoist_time_format">todoist_general_time_format</string>
<string name="title_todoist_time_format">Time Format</string>
<string-array name="entries_todoist_time_format">
<item>13:00</item>
<item>1:00pm</item>
</string-array>
<string name="default_todoist_time_format">1:00pm</string>
<string name="key_todoist_timezone">todoist_general_timezone</string>
<string name="title_todoist_timezone">Time Zone</string>
<string name="key_todoist_sort_order">todoist_general_sort_order</string>
<string name="title_todoist_sort_order">Sort Order</string>
<string-array name="entries_todoist_sort_order">
<item>Oldest Dates First</item>
<item>Oldest Dates Last</item>
</string-array>
<string name="default_todoist_sort_order">Oldest Dates Last</string>
<string name="key_todoist_user_preferences">todoist_user_preferences</string>
<string name="title_todoist_user_preferences">Account</string>
<string name="summary_todoist_user_preferences">Your Information</string>
<string name="key_remember_me">todoist_remember_me</string>
<string name="title_remember_me">Remember Me</string>
<string name="summary_remember_me">Remember Login Information</string>
<string name="summary_remember_me_on">Remember Login Information</string>
<string name="summary_remember_me_off">Forget Login Information</string>
<string name="key_todoist_full_name">todoist_user_full_name</string>
<string name="title_todoist_full_name">Full Name</string>
<string name="key_todoist_email">todoist_user_email</string>
<string name="title_todoist_email">Email</string>
<string name="title_todoist_password">Password</string>
<string name="title_todoist_api_token">Web Service Token</string>
<string name="key_todoist_premium_preferences">todoist_premium_preferences</string>
<string name="title_todoist_premium_preferences">Todoist Premium</string>
<string name="summary_todoist_premium_preferences">Coming Soon!</string>
</resources>
<?xml version="1.0" encoding="utf-8" ?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:key="todoist_option_preference"
android:title="@string/preferences_title"
android:key="@string/key_todoist_preferences"
android:title="@string/title_todoist_preferences"
>
<CheckBoxPreference
android:key="@string/key_remember_me"
android:title="@string/title_remember_me"
android:summary="@string/summary_remember_me"
android:selectable="true"
android:persistent="true"
android:defaultValue="off"
/>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:key="@string/key_todoist_general_preferences"
android:title="@string/title_todoist_general_preferences"
>
<ListPreference
android:key="@string/key_todoist_start_page"
android:title="@string/title_todoist_start_page"
android:entries="@array/entries_todoist_start_page"
android:entryValues="@array/entries_todoist_start_page"
android:dialogTitle="@string/title_todoist_start_page"
android:defaultValue="@string/default_todoist_start_page"
/>
<ListPreference
android:key="@string/key_todoist_date_format"
android:title="@string/title_todoist_date_format"
android:entries="@array/entries_todoist_date_format"
android:entryValues="@array/entries_todoist_date_format"
android:dialogTitle="@string/title_todoist_date_format"
android:defaultValue="@string/default_todoist_date_format"
/>
<ListPreference
android:key="@string/key_todoist_time_format"
android:title="@string/title_todoist_time_format"
android:entries="@array/entries_todoist_time_format"
android:entryValues="@array/entries_todoist_time_format"
android:dialogTitle="@string/title_todoist_time_format"
android:defaultValue="@string/default_todoist_time_format"
/>
<ListPreference
android:key="@string/key_todoist_timezone"
android:title="@string/title_todoist_timezone"
android:dialogTitle="@string/title_todoist_timezone"
/>
<ListPreference
android:key="@string/key_todoist_sort_order"
android:title="@string/title_todoist_sort_order"
android:entries="@array/entries_todoist_sort_order"
android:entryValues="@array/entries_todoist_sort_order"
android:dialogTitle="@string/title_todoist_sort_order"
android:defaultValue="@string/default_todoist_sort_order"
/>
</PreferenceScreen>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:key="@string/key_todoist_user_preferences"
android:title="@string/title_todoist_user_preferences"
android:summary="@string/summary_todoist_user_preferences"
>
<CheckBoxPreference
android:key="@string/key_remember_me"
android:title="@string/title_remember_me"
android:summaryOn="@string/summary_remember_me_on"
android:summaryOff="@string/summary_remember_me_off"
android:selectable="true"
android:persistent="true"
android:defaultValue="off"
/>
<EditTextPreference
android:key="@string/key_todoist_full_name"
android:title="@string/title_todoist_full_name"
android:dialogTitle="@string/title_todoist_full_name"
/>
<EditTextPreference
android:key="@string/key_todoist_email"
android:title="@string/title_todoist_email"
android:dialogTitle="@string/title_todoist_email"
/>
<!-- TODO Make this a password Item ... -->
<EditTextPreference
android:title="@string/title_todoist_password"
android:dialogTitle="@string/title_todoist_password"
android:persistent="false"
/>
<Preference
android:title="@string/title_todoist_api_token"
android:persistent="false"
/>
</PreferenceScreen>
<!-- TODO Make this actually work? -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:key="@string/key_todoist_premium_preferences"
android:title="@string/title_todoist_premium_preferences"
android:summary="@string/summary_todoist_premium_preferences"
>
</PreferenceScreen>
</PreferenceScreen>
\ No newline at end of file
......@@ -80,6 +80,7 @@ public class Launcher extends Activity {
/**
* TODO Call this function when a support issue needs to be handled.
* TODO Determine what parameters we want from the system when an issue occurs.
* TODO Potentially launch the SupportForm activity here depending on the user's choice from sbumitting and seriousness of issue.
*/
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment