Merge pull request #478 from domdomegg/updateSettings

Create SettingsFragment
This commit is contained in:
Josephine Lim 2017-04-04 23:30:16 +10:00 committed by GitHub
commit 314055b2ff
13 changed files with 118 additions and 176 deletions

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="pref_defaultLicense_entries">
<item>@string/license_name_cc0</item>
<item>@string/license_name_cc_by</item>
<item>@string/license_name_cc_by_four</item>
<item>@string/license_name_cc_by_sa</item>
<item>@string/license_name_cc_by_sa_four</item>
</array>
<array name="pref_defaultLicense_values">
<item>@string/license_name_cc0</item>
<item>@string/license_name_cc_by_3_0</item>
<item>@string/license_name_cc_by_4_0</item>
<item>@string/license_name_cc_by_sa_3_0</item>
<item>@string/license_name_cc_by_sa_4_0</item>
</array>
</resources>

View file

@ -1,17 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
>
<ListPreference
android:key="defaultLicense"
android:title="@string/preference_license"
android:defaultValue="CC BY-SA"
android:entries="@array/pref_defaultLicense_entries"
android:entryValues="@array/pref_defaultLicense_values"
android:defaultValue="@string/license_name_cc_by_sa_4_0"
/>
<CheckBoxPreference
android:key="allowGps"
android:title="@string/allow_gps"
android:defaultValue="false"
android:summary="@string/allow_gps_summary"
android:key="allowGps" />
/>
<Preference android:title="@string/become_a_tester_title"
android:summary="@string/become_a_tester_description">
@ -23,7 +28,7 @@
android:title="@string/preference_theme"
android:defaultValue="true"
android:summary="@string/preference_theme_summary"
android:key="theme" />
android:key="theme"
/>
</PreferenceScreen>
</PreferenceScreen>