]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/profile_detail.xml
remove unused LinearLayout
[mobile-ledger.git] / app / src / main / res / layout / profile_detail.xml
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.
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 <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">
28
29     <LinearLayout
30         android:layout_width="match_parent"
31         android:layout_height="wrap_content"
32         android:layout_marginBottom="16dp"
33         android:orientation="vertical">
34
35         <TextView
36             android:layout_width="match_parent"
37             android:layout_height="wrap_content"
38             android:text="Profile name" />
39
40         <EditText
41             android:id="@+id/profile_name"
42             android:layout_width="match_parent"
43             android:layout_height="wrap_content"
44             android:ems="10"
45             android:inputType="textPersonName"
46             android:text="Name" />
47     </LinearLayout>
48
49     <LinearLayout
50         android:layout_width="match_parent"
51         android:layout_height="wrap_content"
52         android:layout_marginBottom="16dp"
53         android:orientation="vertical">
54
55         <TextView
56             android:layout_width="match_parent"
57             android:layout_height="wrap_content"
58             android:text="URL" />
59
60         <EditText
61             android:id="@+id/url"
62             android:layout_width="match_parent"
63             android:layout_height="wrap_content"
64             android:ems="10"
65             android:inputType="textUri"
66             android:text="https://server/url" />
67     </LinearLayout>
68
69     <LinearLayout
70         android:layout_width="match_parent"
71         android:layout_height="wrap_content"
72         android:orientation="vertical">
73
74         <Switch
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" />
80
81         <LinearLayout
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">
87
88             <LinearLayout
89                 android:layout_width="match_parent"
90                 android:layout_height="wrap_content"
91                 android:layout_marginBottom="16dp"
92                 android:orientation="vertical">
93
94                 <TextView
95                     android:layout_width="match_parent"
96                     android:layout_height="wrap_content"
97                     android:text="@string/pref_title_backend_auth_user" />
98
99                 <EditText
100                     android:id="@+id/auth_user_name"
101                     android:layout_width="match_parent"
102                     android:layout_height="wrap_content"
103                     android:ems="10"
104                     android:inputType="textPersonName"
105                     android:text="Name" />
106             </LinearLayout>
107
108             <LinearLayout
109                 android:layout_width="match_parent"
110                 android:layout_height="wrap_content"
111                 android:orientation="vertical">
112
113                 <TextView
114                     android:layout_width="match_parent"
115                     android:layout_height="wrap_content"
116                     android:text="@string/pref_title_backend_auth_password" />
117
118                 <EditText
119                     android:id="@+id/password"
120                     android:layout_width="match_parent"
121                     android:layout_height="wrap_content"
122                     android:ems="10"
123                     android:inputType="textPassword" />
124
125             </LinearLayout>
126         </LinearLayout>
127
128
129     </LinearLayout>
130 </LinearLayout>