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.
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.
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/>.
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 tools:context=".ui.profiles.ProfileDetailFragment">
28 <com.google.android.material.textfield.TextInputLayout
29 android:id="@+id/profile_name_layout"
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 android:layout_marginBottom="16dp">
34 <com.google.android.material.textfield.TextInputEditText
35 android:id="@+id/profile_name"
36 android:layout_width="match_parent"
37 android:layout_height="wrap_content"
39 android:hint="@string/profile_name_label"
40 android:inputType="textPersonName" />
41 </com.google.android.material.textfield.TextInputLayout>
43 <com.google.android.material.textfield.TextInputLayout
44 android:id="@+id/url_layout"
45 android:layout_width="match_parent"
46 android:layout_height="wrap_content"
47 android:layout_marginBottom="16dp"
48 android:orientation="vertical">
50 <com.google.android.material.textfield.TextInputEditText
52 android:layout_width="match_parent"
53 android:layout_height="wrap_content"
55 android:hint="@string/url_label"
56 android:inputType="textUri"
57 android:text="@string/pref_default_backend_url" />
58 </com.google.android.material.textfield.TextInputLayout>
61 android:layout_width="match_parent"
62 android:layout_height="wrap_content"
63 android:animateLayoutChanges="true"
64 android:orientation="vertical">
67 android:id="@+id/profile_permit_posting"
68 android:layout_width="match_parent"
69 android:layout_height="wrap_content"
70 android:layout_marginBottom="16dp"
71 android:text="@string/posting_permitted" />
74 android:id="@+id/enable_http_auth"
75 android:layout_width="match_parent"
76 android:layout_height="wrap_content"
77 android:layout_marginBottom="16dp"
78 android:text="@string/pref_title_use_http_auth" />
81 android:id="@+id/auth_params"
82 android:layout_width="match_parent"
83 android:layout_height="wrap_content"
84 android:orientation="vertical"
85 android:paddingStart="8dp"
86 tools:ignore="RtlSymmetry">
88 <com.google.android.material.textfield.TextInputLayout
89 android:id="@+id/auth_user_name_layout"
90 android:layout_width="match_parent"
91 android:layout_height="wrap_content"
92 android:layout_marginBottom="16dp"
93 android:orientation="vertical">
95 <com.google.android.material.textfield.TextInputEditText
96 android:id="@+id/auth_user_name"
97 android:layout_width="match_parent"
98 android:layout_height="wrap_content"
100 android:hint="@string/pref_title_backend_auth_user"
101 android:inputType="textPersonName" />
102 </com.google.android.material.textfield.TextInputLayout>
104 <com.google.android.material.textfield.TextInputLayout
105 android:id="@+id/password_layout"
106 android:layout_width="match_parent"
107 android:layout_height="wrap_content"
108 android:orientation="vertical">
110 <com.google.android.material.textfield.TextInputEditText
111 android:id="@+id/password"
112 android:layout_width="match_parent"
113 android:layout_height="wrap_content"
115 android:hint="@string/pref_title_backend_auth_password"
116 android:inputType="textPassword" />
118 </com.google.android.material.textfield.TextInputLayout>
122 <com.google.android.material.textfield.TextInputLayout
123 android:id="@+id/preferred_accounts_accounts_filter_layout"
124 android:layout_width="match_parent"
125 android:layout_height="wrap_content"
126 android:layout_marginBottom="16dp"
127 android:orientation="vertical">
129 <com.google.android.material.textfield.TextInputEditText
130 android:id="@+id/preferred_accounts_filter_filter"
131 android:layout_width="match_parent"
132 android:layout_height="wrap_content"
134 android:fontFamily="monospace"
135 android:hint="@string/pref_preferred_autocompletion_account_filter_hint"
136 android:inputType="text" />
137 </com.google.android.material.textfield.TextInputLayout>
140 android:layout_width="match_parent"
141 android:layout_height="match_parent"
142 android:orientation="horizontal">
145 android:layout_width="wrap_content"
146 android:layout_height="match_parent"
147 android:layout_weight="100"
148 android:gravity="center_vertical"
149 android:text="@string/profile_color_label" />
152 android:id="@+id/btn_pick_ring_color"
153 android:layout_width="@dimen/thumb_row_height"
154 android:layout_height="@dimen/thumb_row_height"
155 android:layout_weight="1"
156 android:background="?colorPrimary"
157 android:contentDescription="@string/btn_color_picker_button"
158 android:src="@drawable/ic_palette_black_24dp"
159 android:tint="?drawer_background" />