mirror of
https://github.com/wismna/DoNext.git
synced 2025-10-03 23:50:13 -04:00
Replaces settings activity with correct Preference fragment and xml
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
android:orientation="vertical"
|
||||
tools:context="com.wismna.geoffroy.donext.SettingsActivity">
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:saveEnabled="true"
|
||||
android:checked="true"
|
||||
android:clickable="true"
|
||||
android:text="@string/settings_confirm_donext" />
|
||||
<CheckBox
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:clickable="true"
|
||||
android:saveEnabled="true"
|
||||
android:text="@string/settings_confirm_markdone" />
|
||||
<CheckBox
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:clickable="true"
|
||||
android:saveEnabled="true"
|
||||
android:text="@string/settings_confirm_delete" />
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/settings_max_lists_label"/>
|
||||
<Spinner
|
||||
android:id="@+id/max_lists_spinner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:entries="@array/settings_max_lists_number"/>
|
||||
</LinearLayout>
|
23
DoNExt/app/src/main/res/xml/preferences.xml
Normal file
23
DoNExt/app/src/main/res/xml/preferences.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<CheckBoxPreference
|
||||
android:key="pref_conf_next"
|
||||
android:title="@string/settings_confirm_donext"
|
||||
android:defaultValue="true" />
|
||||
<CheckBoxPreference
|
||||
android:key="pref_conf_done"
|
||||
android:title="@string/settings_confirm_markdone"
|
||||
android:defaultValue="true" />
|
||||
<CheckBoxPreference
|
||||
android:key="pref_conf_del"
|
||||
android:title="@string/settings_confirm_delete"
|
||||
android:defaultValue="true" />
|
||||
<ListPreference
|
||||
android:key="pref_conf_max_lists"
|
||||
android:title="@string/settings_max_lists_label"
|
||||
android:dialogTitle="@string/settings_max_lists_label"
|
||||
android:entries="@array/settings_max_lists_number"
|
||||
android:entryValues="@array/settings_max_lists_number"
|
||||
android:summary="%s"
|
||||
android:defaultValue="3" />
|
||||
</PreferenceScreen>
|
Reference in New Issue
Block a user