summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-11-26 22:15:48 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2022-11-27 13:28:45 +0530
commit2a3f78d43e20e22686ef3fdf35fbf56f85478268 (patch)
tree9c7045098a88ddc97a0f2601783d2ac517369475 /app/src/main/res
parent736022f8148c06f515fecf10b47587071ede9bae (diff)
feat: add `TextInputDialog` for generic text input dialogs
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/dialog_text_input.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/src/main/res/layout/dialog_text_input.xml b/app/src/main/res/layout/dialog_text_input.xml
new file mode 100644
index 00000000..63660385
--- /dev/null
+++ b/app/src/main/res/layout/dialog_text_input.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+ ~ Copyright © 2022 The Android Password Store Authors. All Rights Reserved.
+ ~ SPDX-License-Identifier: GPL-3.0-only
+ -->
+
+<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="@dimen/activity_horizontal_margin">
+
+ <com.google.android.material.textfield.TextInputLayout
+ android:id="@+id/text_input_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/edit_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ <requestFocus />
+ </com.google.android.material.textfield.TextInputLayout>
+
+</LinearLayout>