]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/profile_detail.xml
warn when using authentication with insecure HTTP scheme
[mobile-ledger.git] / app / src / main / res / layout / profile_detail.xml
index e55e35a284af52962c303188abdd4bf772d8d603..3479cf07430fa22f981517eb40b4701cb3e7082f 100644 (file)
             android:layout_height="wrap_content"
             android:orientation="vertical"
             android:paddingStart="8dp"
+            android:animateLayoutChanges="true"
             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: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" />