1 <?xml version="1.0" encoding="utf-8"?><!--
2 ~ Copyright © 2019 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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:tools="http://schemas.android.com/tools"
20 android:id="@+id/profile_detail"
21 style="?android:attr/textAppearanceLarge"
22 android:layout_width="match_parent"
23 android:layout_height="match_parent"
24 android:orientation="vertical"
25 android:padding="16dp"
26 android:textIsSelectable="true"
27 tools:context=".ui.profiles.ProfileDetailFragment">
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 android:layout_marginBottom="16dp"
33 android:orientation="vertical">
36 android:layout_width="match_parent"
37 android:layout_height="wrap_content"
38 android:text="@string/profile_name_label" />
41 android:id="@+id/profile_name"
42 android:layout_width="match_parent"
43 android:layout_height="wrap_content"
45 android:inputType="textPersonName"
47 tools:ignore="HardcodedText" />
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:layout_marginBottom="16dp"
54 android:orientation="vertical">
57 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
59 android:text="@string/url_label" />
63 android:layout_width="match_parent"
64 android:layout_height="wrap_content"
66 android:inputType="textUri"
67 android:text="@string/pref_default_backend_url" />
71 android:layout_width="match_parent"
72 android:layout_height="wrap_content"
73 android:orientation="vertical">
76 android:id="@+id/enable_http_auth"
77 android:layout_width="match_parent"
78 android:layout_height="wrap_content"
79 android:layout_marginBottom="16dp"
80 android:text="@string/pref_title_use_http_auth" />
83 android:id="@+id/auth_params"
84 android:layout_width="match_parent"
85 android:layout_height="wrap_content"
86 android:orientation="vertical"
87 android:paddingStart="8dp">
90 android:layout_width="match_parent"
91 android:layout_height="wrap_content"
92 android:layout_marginBottom="16dp"
93 android:orientation="vertical">
96 android:layout_width="match_parent"
97 android:layout_height="wrap_content"
98 android:text="@string/pref_title_backend_auth_user" />
101 android:id="@+id/auth_user_name"
102 android:layout_width="match_parent"
103 android:layout_height="wrap_content"
105 android:inputType="textPersonName"
106 android:text="Name" />
110 android:layout_width="match_parent"
111 android:layout_height="wrap_content"
112 android:orientation="vertical">
115 android:layout_width="match_parent"
116 android:layout_height="wrap_content"
117 android:text="@string/pref_title_backend_auth_password" />
120 android:id="@+id/password"
121 android:layout_width="match_parent"
122 android:layout_height="wrap_content"
124 android:inputType="textPassword" />