<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright © 2019 Damyan Ivanov.
- ~ This file is part of Mobile-Ledger.
- ~ Mobile-Ledger is free software: you can distribute it and/or modify it
+ ~ This file is part of MoLe.
+ ~ MoLe is free software: you can distribute it and/or modify it
~ under the term of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your opinion), any later version.
~
- ~ Mobile-Ledger is distributed in the hope that it will be useful,
+ ~ MoLe is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License terms for details.
~
~ You should have received a copy of the GNU General Public License
- ~ along with Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
+ ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/profile_detail"
style="?android:attr/textAppearanceLarge"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp"
- android:textIsSelectable="true"
tools:context=".ui.profiles.ProfileDetailFragment">
- <LinearLayout
+ <com.google.android.material.textfield.TextInputLayout
+ android:id="@+id/profile_name_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginBottom="16dp"
- android:orientation="vertical">
+ android:layout_marginBottom="16dp">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Profile name" />
-
- <EditText
+ <com.google.android.material.textfield.TextInputEditText
android:id="@+id/profile_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
- android:inputType="textPersonName"
- android:text="Name" />
- </LinearLayout>
+ android:hint="@string/profile_name_label"
+ android:inputType="textPersonName" />
+ </com.google.android.material.textfield.TextInputLayout>
- <LinearLayout
+ <com.google.android.material.textfield.TextInputLayout
+ android:id="@+id/url_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:orientation="vertical">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="URL" />
-
- <EditText
+ <com.google.android.material.textfield.TextInputEditText
android:id="@+id/url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
+ android:hint="@string/url_label"
android:inputType="textUri"
- android:text="https://server/url" />
- </LinearLayout>
+ android:text="@string/pref_default_backend_url" />
+ </com.google.android.material.textfield.TextInputLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:animateLayoutChanges="true"
android:orientation="vertical">
+ <Switch
+ android:id="@+id/profile_permit_posting"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
+ android:text="@string/posting_permitted" />
+
<Switch
android:id="@+id/enable_http_auth"
android:layout_width="match_parent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
- android:paddingStart="8dp">
+ android:paddingStart="8dp"
+ tools:ignore="RtlSymmetry">
- <LinearLayout
+ <com.google.android.material.textfield.TextInputLayout
+ android:id="@+id/auth_user_name_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:orientation="vertical">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/pref_title_backend_auth_user" />
-
- <EditText
+ <com.google.android.material.textfield.TextInputEditText
android:id="@+id/auth_user_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
- android:inputType="textPersonName"
- android:text="Name" />
- </LinearLayout>
+ android:hint="@string/pref_title_backend_auth_user"
+ android:inputType="textPersonName" />
+ </com.google.android.material.textfield.TextInputLayout>
- <LinearLayout
+ <com.google.android.material.textfield.TextInputLayout
+ android:id="@+id/password_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/pref_title_backend_auth_password" />
-
- <EditText
+ <com.google.android.material.textfield.TextInputEditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
+ android:hint="@string/pref_title_backend_auth_password"
android:inputType="textPassword" />
- </LinearLayout>
+ </com.google.android.material.textfield.TextInputLayout>
+
</LinearLayout>
+ <com.google.android.material.textfield.TextInputLayout
+ android:id="@+id/preferred_accounts_accounts_filter_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
+ android:orientation="vertical">
+
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/preferred_accounts_filter_filter"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:fontFamily="monospace"
+ android:hint="@string/pref_preferred_autocompletion_account_filter_hint"
+ android:inputType="text" />
+ </com.google.android.material.textfield.TextInputLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="horizontal">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_weight="100"
+ android:gravity="center_vertical"
+ android:text="@string/profile_color_label" />
+
+ <ImageButton
+ android:id="@+id/btn_pick_ring_color"
+ android:layout_width="@dimen/thumb_row_height"
+ android:layout_height="@dimen/thumb_row_height"
+ android:layout_weight="1"
+ android:background="?colorPrimary"
+ android:src="@drawable/ic_palette_black_24dp"
+ android:tint="?drawer_background" />
+
+ </LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file