]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/profile_detail.xml
profile details: missed one padding
[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     <android.support.design.widget.TextInputLayout
30         android:id="@+id/profile_name_layout"
31         android:layout_width="match_parent"
32         android:layout_height="wrap_content"
33         android:layout_marginBottom="16dp">
34
35         <android.support.design.widget.TextInputEditText
36             android:id="@+id/profile_name"
37             android:layout_width="match_parent"
38             android:layout_height="wrap_content"
39             android:ems="10"
40             android:hint="@string/profile_name_label"
41             android:inputType="textPersonName" />
42     </android.support.design.widget.TextInputLayout>
43
44     <android.support.design.widget.TextInputLayout
45         android:id="@+id/url_layout"
46         android:layout_width="match_parent"
47         android:layout_height="wrap_content"
48         android:layout_marginBottom="16dp"
49         android:orientation="vertical">
50
51         <android.support.design.widget.TextInputEditText
52             android:id="@+id/url"
53             android:layout_width="match_parent"
54             android:layout_height="wrap_content"
55             android:ems="10"
56             android:hint="@string/url_label"
57             android:inputType="textUri"
58             android:text="@string/pref_default_backend_url" />
59     </android.support.design.widget.TextInputLayout>
60
61     <LinearLayout
62         android:layout_width="match_parent"
63         android:layout_height="wrap_content"
64         android:orientation="vertical">
65
66         <Switch
67             android:id="@+id/enable_http_auth"
68             android:layout_width="match_parent"
69             android:layout_height="wrap_content"
70             android:layout_marginBottom="16dp"
71             android:text="@string/pref_title_use_http_auth" />
72
73         <LinearLayout
74             android:id="@+id/auth_params"
75             android:layout_width="match_parent"
76             android:layout_height="wrap_content"
77             android:orientation="vertical"
78             android:paddingStart="8dp"
79             tools:ignore="RtlSymmetry">
80
81             <android.support.design.widget.TextInputLayout
82                 android:id="@+id/auth_user_name_layout"
83                 android:layout_width="match_parent"
84                 android:layout_height="wrap_content"
85                 android:layout_marginBottom="16dp"
86                 android:orientation="vertical">
87
88                 <android.support.design.widget.TextInputEditText
89                     android:id="@+id/auth_user_name"
90                     android:layout_width="match_parent"
91                     android:layout_height="wrap_content"
92                     android:ems="10"
93                     android:hint="@string/pref_title_backend_auth_user"
94                     android:inputType="textPersonName" />
95             </android.support.design.widget.TextInputLayout>
96
97             <android.support.design.widget.TextInputLayout
98                 android:id="@+id/password_layout"
99                 android:layout_width="match_parent"
100                 android:layout_height="wrap_content"
101                 android:orientation="vertical">
102
103                 <android.support.design.widget.TextInputEditText
104                     android:id="@+id/password"
105                     android:layout_width="match_parent"
106                     android:layout_height="wrap_content"
107                     android:ems="10"
108                     android:hint="@string/pref_title_backend_auth_password"
109                     android:inputType="textPassword" />
110
111             </android.support.design.widget.TextInputLayout>
112         </LinearLayout>
113
114
115     </LinearLayout>
116 </LinearLayout>