diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-03-23 09:40:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-23 09:40:40 +0100 |
commit | f20ce1fc690788273bb779663a4f3211f47a0973 (patch) | |
tree | a1192a00bc1b5153d143fa579b8c6f977111c847 /ui/preferences/src/main/res/layout/authentication_dialog.xml | |
parent | 376c83d200859ef562d6e3de02602ef18de3e7de (diff) | |
download | AntennaPod-f20ce1fc690788273bb779663a4f3211f47a0973.zip |
Move first batch of preferences code to :ui:preferences (#7010)
Diffstat (limited to 'ui/preferences/src/main/res/layout/authentication_dialog.xml')
-rw-r--r-- | ui/preferences/src/main/res/layout/authentication_dialog.xml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/ui/preferences/src/main/res/layout/authentication_dialog.xml b/ui/preferences/src/main/res/layout/authentication_dialog.xml new file mode 100644 index 000000000..0d54420d4 --- /dev/null +++ b/ui/preferences/src/main/res/layout/authentication_dialog.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:padding="16dp"> + + <com.google.android.material.textfield.TextInputLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="8dp" + style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"> + + <com.google.android.material.textfield.TextInputEditText + android:id="@+id/usernameEditText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/username_label" + android:lines="1" /> + + </com.google.android.material.textfield.TextInputLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <com.google.android.material.textfield.TextInputLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"> + + <com.google.android.material.textfield.TextInputEditText + android:id="@+id/passwordEditText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/password_label" + android:inputType="textPassword" + android:lines="1" /> + + </com.google.android.material.textfield.TextInputLayout> + + <ImageView + android:id="@+id/showPasswordButton" + android:layout_width="40dp" + android:layout_height="40dp" + android:src="@drawable/ic_eye" + android:layout_gravity="center_vertical" + android:padding="8dp" + android:textColor="?android:attr/textColorPrimary" + android:background="?attr/selectableItemBackgroundBorderless" + android:alpha="0.6" + android:textSize="20sp" + android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" /> + + </LinearLayout> + +</LinearLayout> |