]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/profile_detail.xml
fix text color for the account name filter
[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 MoLe.
4   ~ MoLe 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   ~ MoLe 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 MoLe. If not, see <https://www.gnu.org/licenses/>.
16   -->
17
18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19     xmlns:app="http://schemas.android.com/apk/res-auto"
20     xmlns:tools="http://schemas.android.com/tools"
21     android:id="@+id/profile_detail"
22     style="?android:attr/textAppearanceLarge"
23     android:layout_width="match_parent"
24     android:layout_height="match_parent"
25     android:orientation="vertical"
26     android:padding="16dp"
27     tools:context=".ui.profiles.ProfileDetailFragment">
28
29     <com.google.android.material.textfield.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         <com.google.android.material.textfield.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     </com.google.android.material.textfield.TextInputLayout>
43
44     <com.google.android.material.textfield.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         <com.google.android.material.textfield.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     </com.google.android.material.textfield.TextInputLayout>
60
61     <LinearLayout
62         android:layout_width="match_parent"
63         android:layout_height="wrap_content"
64         android:animateLayoutChanges="true"
65         android:orientation="vertical">
66
67         <Switch
68             android:id="@+id/profile_permit_posting"
69             android:layout_width="match_parent"
70             android:layout_height="wrap_content"
71             android:layout_marginBottom="16dp"
72             android:text="@string/posting_permitted" />
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             tools:ignore="RtlSymmetry">
88
89             <com.google.android.material.textfield.TextInputLayout
90                 android:id="@+id/auth_user_name_layout"
91                 android:layout_width="match_parent"
92                 android:layout_height="wrap_content"
93                 android:layout_marginBottom="16dp"
94                 android:orientation="vertical">
95
96                 <com.google.android.material.textfield.TextInputEditText
97                     android:id="@+id/auth_user_name"
98                     android:layout_width="match_parent"
99                     android:layout_height="wrap_content"
100                     android:ems="10"
101                     android:hint="@string/pref_title_backend_auth_user"
102                     android:inputType="textPersonName" />
103             </com.google.android.material.textfield.TextInputLayout>
104
105             <com.google.android.material.textfield.TextInputLayout
106                 android:id="@+id/password_layout"
107                 android:layout_width="match_parent"
108                 android:layout_height="wrap_content"
109                 android:orientation="vertical">
110
111                 <com.google.android.material.textfield.TextInputEditText
112                     android:id="@+id/password"
113                     android:layout_width="match_parent"
114                     android:layout_height="wrap_content"
115                     android:ems="10"
116                     android:hint="@string/pref_title_backend_auth_password"
117                     android:inputType="textPassword" />
118
119             </com.google.android.material.textfield.TextInputLayout>
120
121         </LinearLayout>
122
123         <com.google.android.material.textfield.TextInputLayout
124             android:id="@+id/preferred_accounts_accounts_filter_layout"
125             android:layout_width="match_parent"
126             android:layout_height="wrap_content"
127             android:layout_marginBottom="16dp"
128             android:orientation="vertical">
129
130             <com.google.android.material.textfield.TextInputEditText
131                 android:id="@+id/preferred_accounts_filter_filter"
132                 android:layout_width="match_parent"
133                 android:layout_height="wrap_content"
134                 android:ems="10"
135                 android:fontFamily="monospace"
136                 android:hint="@string/pref_preferred_autocompletion_account_filter_hint"
137                 android:inputType="text" />
138         </com.google.android.material.textfield.TextInputLayout>
139
140         <LinearLayout
141             android:layout_width="match_parent"
142             android:layout_height="match_parent"
143             android:orientation="horizontal">
144
145             <TextView
146                 android:layout_width="wrap_content"
147                 android:layout_height="match_parent"
148                 android:layout_weight="100"
149                 android:gravity="center_vertical"
150                 android:text="@string/profile_color_label" />
151
152             <ImageButton
153                 android:id="@+id/btn_pick_ring_color"
154                 android:layout_width="@dimen/thumb_row_height"
155                 android:layout_height="@dimen/thumb_row_height"
156                 android:layout_weight="1"
157                 android:background="?colorPrimary"
158                 android:src="@drawable/ic_palette_black_24dp"
159                 android:tint="?drawer_background" />
160
161         </LinearLayout>
162
163     </LinearLayout>
164 </LinearLayout>