Skip to content

Instantly share code, notes, and snippets.

@yccheok
Created July 7, 2016 18:00
Show Gist options
  • Save yccheok/4172d782249757b1153cee9edd4c566b to your computer and use it in GitHub Desktop.
Save yccheok/4172d782249757b1153cee9edd4c566b to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<PreferenceCategoryFix
android:title="@string/preference_ui">
<CheckBoxPreference
android:title="@string/preference_touch_to_sort_title"
android:summary="@string/preference_touch_to_sort_summary"
android:key="TOUCH_TO_SORT"
android:defaultValue="true" />
<CheckBoxPreference
android:title="@string/preference_dark_theme_enabled_title"
android:key="DARK_THEME_ENABLED"
android:defaultValue="false" />
<PreferenceScreen
android:key="PREFERENCE_STARTUP_LOCK"
android:title="@string/preference_startup_lock_title"
android:persistent="false">
<Preference
android:key="SET_STARTUP_LOCK"
android:title="@string/set_startup_lock" />
<Preference
android:key="DISABLE_STARTUP_LOCK"
android:title="@string/disable_startup_lock" />
</PreferenceScreen>
</PreferenceCategoryFix>
<PreferenceCategoryFix
android:title="@string/preference_stock_alert">
<CheckBoxPreference
android:title="@string/preference_enable_stock_alert_title"
android:summary="@string/preference_enable_stock_alert_summary"
android:key="STOCK_ALERT_ENABLED"
android:defaultValue="true" />
<ListPreference
android:dependency="STOCK_ALERT_ENABLED"
android:title="@string/preference_stock_alert_type_title"
android:key="STOCK_ALERT_TYPE"
android:entries="@array/stock_alert_type_entries"
android:entryValues="@array/stock_alert_type_entry_values"
android:dialogTitle="@string/preference_stock_alert_type_title"
android:defaultValue="2" />
<CheckBoxPreference
android:title="@string/preference_enable_background_stock_alert_title"
android:summary="@string/preference_enable_background_stock_alert_summary"
android:key="BACKGROUND_STOCK_ALERT_ENABLED"
android:defaultValue="false" />
<android.support.v7.preference.ListPreference
android:title="@string/preference_background_stock_alert_type_title"
android:key="_BACKGROUND_STOCK_ALERT_TYPE2"
android:dependency="BACKGROUND_STOCK_ALERT_ENABLED" />
</PreferenceCategoryFix>
<PreferenceCategoryFix
android:key="PREFERENCE_STOCK_PRICE_CATEGORY"
android:title="@string/preference_stock_price">
<ListPreference
android:title="@string/preference_price_source_title"
android:key="_PRICE_SOURCE"
android:dialogTitle="@string/preference_price_source_title" />
<!-- entries, entryValues & defaultValue are for Android 2.3 purpose, as 2.3 don't have NumberPicker -->
<android.support.v7.preference.ListPreference
android:title="@string/preference_scan_speed_title"
android:key="_SCAN_SPEED2"
android:dialogTitle="@string/preference_scan_speed_title"
android:entries="@array/scan_speed_entries"
android:entryValues="@array/scan_speed_entry_values"
android:defaultValue="1" />
</PreferenceCategoryFix>
<PreferenceCategoryFix
android:key="PREFERENCE_PORTFOLIO_CATEGORY"
android:title="@string/preference_portfolio">
<CheckBoxPreference
android:title="@string/preference_fee_calculation_enabled_title"
android:summary="@string/preference_fee_calculation_enabled_summary"
android:key="FEE_CALCULATION_ENABLED"
android:defaultValue="false" />
<ListPreference
android:title="@string/preference_decimal_place_title"
android:key="_DECIMAL_PLACE"
android:entries="@array/decimal_place_entries"
android:entryValues="@array/decimal_place_entry_values"
android:dialogTitle="@string/preference_decimal_place_title"
android:defaultValue="0" />
</PreferenceCategoryFix>
<PreferenceCategoryFix
android:key="PREFERENCE_CURRENCY_CATEGORY"
android:title="@string/preference_currency">
<android.support.v7.preference.ListPreference
android:title="@string/preference_currency_symbol_title"
android:key="_CURRENCY_SYMBOL_OPTIONS2" />
<CheckBoxPreference
android:title="@string/preference_enable_currency_exchange_title"
android:key="_CURRENCY_EXCHANGE_ENABLE"
android:defaultValue="false" />
<android.support.v7.preference.ListPreference
android:dependency="_CURRENCY_EXCHANGE_ENABLE"
android:title="@string/preference_local_currency_country_title"
android:key="_LOCAL_CURRENCY_COUNTRIES2"
android:dialogTitle="@string/preference_local_currency_country_title" />
<android.support.v7.preference.ListPreference
android:dependency="_CURRENCY_EXCHANGE_ENABLE"
android:title="@string/preference_local_currency_symbol_title"
android:key="_LOCAL_CURRENCY_SYMBOL_OPTIONS" />
</PreferenceCategoryFix>
<PreferenceCategoryFix
android:key="PREFERENCE_NEWS_CATEGORY"
android:title="@string/preference_news">
<ListPreference
android:title="@string/preference_news_source_title"
android:key="_NEWS_SOURCE"
android:dialogTitle="@string/preference_news_source_title" />
</PreferenceCategoryFix>
<PreferenceCategoryFix
android:title="@string/preference_about">
<Preference
android:key="RATE_APP"
android:title="@string/preference_rate_app_title"
android:summary="@string/preference_rate_app_summary" />
<Preference
android:key="SHARE_APP"
android:title="@string/preference_share_app_title"
android:summary="@string/preference_share_app_summary" />
<PreferenceScreen
android:key="PREFERENCE_BACKUP_RESTORE_DATA"
android:title="@string/preference_backup_restore_data"
android:persistent="false">
<Preference
android:key="BACKUP"
android:title="@string/preference_backup" />
<Preference
android:key="RESTORE"
android:title="@string/preference_restore" />
</PreferenceScreen>
<Preference
android:key="FACEBOOK_PAGE"
android:title="@string/preference_facebook_page_title" />
<Preference
android:key="TRELLO_BOARD"
android:title="@string/preference_trello_board_title" />
<Preference
android:key="FAQ"
android:title="@string/preference_faq_title" />
</PreferenceCategoryFix>
</PreferenceScreen>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment