]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/xml/pref_backend.xml
add license boilerplates for authored content
[mobile-ledger.git] / app / src / main / res / xml / pref_backend.xml
1 <!--
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.
8   ~
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.
13   ~
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/>.
16   -->
17
18 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
19
20     <!-- NOTE: EditTextPreference accepts EditText attributes. -->
21     <!-- NOTE: EditTextPreference's summary should be set to its value by the activity code. -->
22     <EditTextPreference
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"
28         android:maxLines="1"
29         android:selectAllOnFocus="true"
30         android:singleLine="true"
31         android:title="@string/pref_title_backend_url" />
32
33     <SwitchPreference
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" />
41
42     <EditTextPreference
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"
47         android:maxLines="1"
48         android:selectAllOnFocus="true"
49         android:singleLine="true"
50         android:title="@string/pref_title_backend_auth_user" />
51
52     <EditTextPreference
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"
57         android:maxLines="1"
58         android:selectAllOnFocus="true"
59         android:singleLine="true"
60         android:title="@string/pref_title_backend_auth_password" />
61
62 </PreferenceScreen>