]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/profile_detail.xml
whitespace and wrapping
[mobile-ledger.git] / app / src / main / res / layout / profile_detail.xml
index e55e35a284af52962c303188abdd4bf772d8d603..d76fdab5a2282781a88f355a5d87a1b78e556962 100644 (file)
@@ -16,6 +16,7 @@
   -->
 
 <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_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginBottom="16dp"
+            android:textAppearance="?android:textAppearanceListItem"
             android:text="@string/posting_permitted" />
 
+        <LinearLayout
+            android:id="@+id/future_dates_layout"
+            android:layout_width="match_parent"
+            android:layout_marginBottom="16dp"
+            android:layout_height="wrap_content"
+            android:orientation="vertical">
+
+            <TextView
+                android:id="@+id/future_dates_title"
+                android:textAppearance="?android:textAppearanceListItem"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="@string/profile_future_dates_label" />
+
+            <TextView
+                android:id="@+id/future_dates_text"
+                android:textAppearance="?android:textAppearanceListItemSecondary"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:textColor="?attr/textColor"/>
+        </LinearLayout>
+
         <Switch
             android:id="@+id/enable_http_auth"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:layout_marginBottom="16dp"
+            android:textAppearance="?android:textAppearanceListItem"
             android:text="@string/pref_title_use_http_auth" />
 
         <LinearLayout
             android:id="@+id/auth_params"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
+            android:animateLayoutChanges="true"
             android:orientation="vertical"
             android:paddingStart="8dp"
             tools:ignore="RtlSymmetry">
 
+            <LinearLayout
+                android:id="@+id/insecure_scheme_text"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:layout_marginBottom="@dimen/activity_vertical_margin"
+                android:background="@color/error_background"
+                android:padding="@dimen/activity_vertical_margin"
+                android:visibility="gone">
+
+                <TextView
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:text="@string/insecure_scheme_with_auth" />
+            </LinearLayout>
+
             <com.google.android.material.textfield.TextInputLayout
                 android:id="@+id/auth_user_name_layout"
                 android:layout_width="match_parent"
                 android:id="@+id/password_layout"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                android:orientation="vertical">
+                android:orientation="vertical"
+                app:passwordToggleEnabled="true">
 
                 <com.google.android.material.textfield.TextInputEditText
                     android:id="@+id/password"
                     android:layout_height="wrap_content"
                     android:ems="10"
                     android:hint="@string/pref_title_backend_auth_password"
-                    android:inputType="textPassword" />
+                    android:inputType="textWebPassword" />
 
             </com.google.android.material.textfield.TextInputLayout>
 
                 android:ems="10"
                 android:fontFamily="monospace"
                 android:hint="@string/pref_preferred_autocompletion_account_filter_hint"
-                android:inputType="text" />
+                android:inputType="text"
+                android:textColor="?attr/editTextColor" />
         </com.google.android.material.textfield.TextInputLayout>
 
         <LinearLayout
                 android:layout_height="match_parent"
                 android:layout_weight="100"
                 android:gravity="center_vertical"
+                android:textAppearance="?android:textAppearanceListItem"
                 android:text="@string/profile_color_label" />
 
             <ImageButton
                 android:layout_height="@dimen/thumb_row_height"
                 android:layout_weight="1"
                 android:background="?colorPrimary"
+                android:contentDescription="@string/btn_color_picker_button"
                 android:src="@drawable/ic_palette_black_24dp"
                 android:tint="?drawer_background" />