2 ~ Copyright © 2018 Damyan Ivanov.
3 ~ This file is part of Mobile-Ledger.
4 ~ Mobile-Ledger is free software: you can distribute it and/or modify it
5 ~ under the term of the GNU General Public License as published by
6 ~ the Free Software Foundation, either version 3 of the License, or
7 ~ (at your opinion), any later version.
9 ~ Mobile-Ledger is distributed in the hope that it will be useful,
10 ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ~ GNU General Public License terms for details.
14 ~ You should have received a copy of the GNU General Public License
15 ~ along with Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
18 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
20 <!-- NOTE: EditTextPreference accepts EditText attributes. -->
21 <!-- NOTE: EditTextPreference's summary should be set to its value by the activity code. -->
23 android:id="@+id/pref_backend_url"
24 android:capitalize="words"
25 android:defaultValue="@string/pref_default_backend_url"
26 android:inputType="textUri"
27 android:key="backend_url"
29 android:selectAllOnFocus="true"
30 android:singleLine="true"
31 android:title="@string/pref_title_backend_url" />
34 android:id="@+id/pref_backend_use_http_auth"
35 android:defaultValue="false"
36 android:disableDependentsState="false"
37 android:key="backend_use_http_auth"
38 android:summaryOff="@string/pref_description_use_http_auth_off"
39 android:summaryOn="@string/pref_description_use_http_auth_on"
40 android:title="@string/pref_title_use_http_auth" />
43 android:id="@+id/pref_backend_auth_user"
44 android:dependency="backend_use_http_auth"
45 android:inputType="text"
46 android:key="backend_auth_user"
48 android:selectAllOnFocus="true"
49 android:singleLine="true"
50 android:title="@string/pref_title_backend_auth_user" />
53 android:id="@+id/pref_backend_auth_password"
54 android:dependency="backend_use_http_auth"
55 android:inputType="textPassword"
56 android:key="backend_auth_password"
58 android:selectAllOnFocus="true"
59 android:singleLine="true"
60 android:title="@string/pref_title_backend_auth_password" />