aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/activity_enter_name.xml
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-12-30 21:19:49 +0100
committerChristian Schneppe <christian@pix-art.de>2018-12-30 21:19:49 +0100
commit4e78a72af907ac32eccd87ebdbf6ec44a4336d36 (patch)
tree522e5198719f28c3f6d4d3a81376e9681a8c87a6 /src/main/res/layout/activity_enter_name.xml
parent15451513504c1f8692b05be9e6fbc285a43b1026 (diff)
add ability to set nickname in profile
Diffstat (limited to 'src/main/res/layout/activity_enter_name.xml')
-rw-r--r--src/main/res/layout/activity_enter_name.xml63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/main/res/layout/activity_enter_name.xml b/src/main/res/layout/activity_enter_name.xml
new file mode 100644
index 000000000..cb446479d
--- /dev/null
+++ b/src/main/res/layout/activity_enter_name.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layout xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <include
+ android:id="@+id/toolbar"
+ layout="@layout/toolbar" />
+
+ <ScrollView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:fillViewport="true">
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <TextView
+ android:id="@+id/instructions"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:padding="16dp"
+ android:text="@string/enter_your_name_instructions"
+ android:textAppearance="@style/TextAppearance.Conversations.Body1" />
+
+ <LinearLayout
+ android:id="@+id/name_box"
+ android:layout_width="256dp"
+ android:layout_height="wrap_content"
+ android:layout_above="@+id/next"
+ android:layout_below="@+id/instructions"
+ android:layout_centerHorizontal="true"
+ android:orientation="vertical">
+
+ <EditText
+ android:id="@+id/name"
+ style="@style/Widget.Conversations.EditText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="@string/your_name"
+ android:imeOptions="flagNoExtractUi"
+ android:longClickable="false" />
+
+ </LinearLayout>
+
+ <Button
+ android:id="@+id/next"
+ style="@style/Widget.Conversations.Button.Borderless"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentEnd="true"
+ android:layout_alignParentBottom="true"
+ android:text="@string/next"
+ android:textColor="?colorAccent" />
+ </RelativeLayout>
+ </ScrollView>
+ </LinearLayout>
+</layout> \ No newline at end of file