aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/activity_enter_name.xml
blob: e98d55233b12d081e36e7186045f082adf3c6a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?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_alignParentRight="true"
                    android:layout_alignParentBottom="true"
                    android:text="@string/next"
                    android:textColor="?colorAccent" />
            </RelativeLayout>
        </ScrollView>
    </LinearLayout>
</layout>