]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/profile_detail.xml
some translations
[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="@string/profile_name_label" />
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             tools:ignore="HardcodedText" />
48     </LinearLayout>
49
50     <LinearLayout
51         android:layout_width="match_parent"
52         android:layout_height="wrap_content"
53         android:layout_marginBottom="16dp"
54         android:orientation="vertical">
55
56         <TextView
57             android:layout_width="match_parent"
58             android:layout_height="wrap_content"
59             android:text="@string/url_label" />
60
61         <EditText
62             android:id="@+id/url"
63             android:layout_width="match_parent"
64             android:layout_height="wrap_content"
65             android:ems="10"
66             android:inputType="textUri"
67             android:text="@string/pref_default_backend_url" />
68     </LinearLayout>
69
70     <LinearLayout
71         android:layout_width="match_parent"
72         android:layout_height="wrap_content"
73         android:orientation="vertical">
74
75         <Switch
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" />
81
82         <LinearLayout
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">
88
89             <LinearLayout
90                 android:layout_width="match_parent"
91                 android:layout_height="wrap_content"
92                 android:layout_marginBottom="16dp"
93                 android:orientation="vertical">
94
95                 <TextView
96                     android:layout_width="match_parent"
97                     android:layout_height="wrap_content"
98                     android:text="@string/pref_title_backend_auth_user" />
99
100                 <EditText
101                     android:id="@+id/auth_user_name"
102                     android:layout_width="match_parent"
103                     android:layout_height="wrap_content"
104                     android:ems="10"
105                     android:inputType="textPersonName"
106                     android:text="Name" />
107             </LinearLayout>
108
109             <LinearLayout
110                 android:layout_width="match_parent"
111                 android:layout_height="wrap_content"
112                 android:orientation="vertical">
113
114                 <TextView
115                     android:layout_width="match_parent"
116                     android:layout_height="wrap_content"
117                     android:text="@string/pref_title_backend_auth_password" />
118
119                 <EditText
120                     android:id="@+id/password"
121                     android:layout_width="match_parent"
122                     android:layout_height="wrap_content"
123                     android:ems="10"
124                     android:inputType="textPassword" />
125
126             </LinearLayout>
127         </LinearLayout>
128
129
130     </LinearLayout>
131 </LinearLayout>