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="Profile name" />
41 android:id="@+id/profile_name"
42 android:layout_width="match_parent"
43 android:layout_height="wrap_content"
45 android:inputType="textPersonName"
46 android:text="Name" />
50 android:layout_width="match_parent"
51 android:layout_height="wrap_content"
52 android:layout_marginBottom="16dp"
53 android:orientation="vertical">
56 android:layout_width="match_parent"
57 android:layout_height="wrap_content"
62 android:layout_width="match_parent"
63 android:layout_height="wrap_content"
65 android:inputType="textUri"
66 android:text="https://server/url" />
70 android:layout_width="match_parent"
71 android:layout_height="wrap_content"
72 android:orientation="vertical">
75 android:id="@+id/enable_http_auth"
76 android:layout_width="match_parent"
77 android:layout_height="wrap_content"
78 android:layout_marginBottom="16dp"
79 android:text="@string/pref_title_use_http_auth" />
82 android:id="@+id/auth_params"
83 android:layout_width="match_parent"
84 android:layout_height="wrap_content"
85 android:orientation="vertical"
86 android:paddingStart="8dp">
89 android:layout_width="match_parent"
90 android:layout_height="wrap_content"
91 android:layout_marginBottom="16dp"
92 android:orientation="vertical">
95 android:layout_width="match_parent"
96 android:layout_height="wrap_content"
97 android:text="@string/pref_title_backend_auth_user" />
100 android:id="@+id/auth_user_name"
101 android:layout_width="match_parent"
102 android:layout_height="wrap_content"
104 android:inputType="textPersonName"
105 android:text="Name" />
109 android:layout_width="match_parent"
110 android:layout_height="wrap_content"
111 android:orientation="vertical">
114 android:layout_width="match_parent"
115 android:layout_height="wrap_content"
116 android:text="@string/pref_title_backend_auth_password" />
119 android:id="@+id/password"
120 android:layout_width="match_parent"
121 android:layout_height="wrap_content"
123 android:inputType="textPassword" />