+++ /dev/null
-<!--
- ~ Copyright © 2018 Damyan Ivanov.
- ~ This file is part of Mobile-Ledger.
- ~ Mobile-Ledger is free software: you can distribute it and/or modify it
- ~ under the term of the GNU General Public License as published by
- ~ the Free Software Foundation, either version 3 of the License, or
- ~ (at your opinion), any later version.
- ~
- ~ Mobile-Ledger is distributed in the hope that it will be useful,
- ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
- ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ~ GNU General Public License terms for details.
- ~
- ~ You should have received a copy of the GNU General Public License
- ~ along with Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
- -->
-
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
-
- <!-- NOTE: EditTextPreference accepts EditText attributes. -->
- <!-- NOTE: EditTextPreference's summary should be set to its value by the activity code. -->
- <EditTextPreference
- android:id="@+id/pref_backend_url"
- android:capitalize="words"
- android:defaultValue="@string/pref_default_backend_url"
- android:inputType="textUri"
- android:key="backend_url"
- android:maxLines="1"
- android:selectAllOnFocus="true"
- android:singleLine="true"
- android:title="@string/pref_title_backend_url" />
-
- <SwitchPreference
- android:id="@+id/pref_backend_use_http_auth"
- android:defaultValue="false"
- android:disableDependentsState="false"
- android:key="backend_use_http_auth"
- android:summaryOff="@string/pref_description_use_http_auth_off"
- android:summaryOn="@string/pref_description_use_http_auth_on"
- android:title="@string/pref_title_use_http_auth" />
-
- <EditTextPreference
- android:id="@+id/pref_backend_auth_user"
- android:dependency="backend_use_http_auth"
- android:inputType="text"
- android:key="backend_auth_user"
- android:maxLines="1"
- android:selectAllOnFocus="true"
- android:singleLine="true"
- android:title="@string/pref_title_backend_auth_user" />
-
- <EditTextPreference
- android:id="@+id/pref_backend_auth_password"
- android:dependency="backend_use_http_auth"
- android:inputType="textPassword"
- android:key="backend_auth_password"
- android:maxLines="1"
- android:selectAllOnFocus="true"
- android:singleLine="true"
- android:title="@string/pref_title_backend_auth_password" />
-
-</PreferenceScreen>