1<?xml version="1.0" encoding="utf-8"?>
2<layout xmlns:android="http://schemas.android.com/apk/res/android">
3
4 <LinearLayout
5 android:layout_width="match_parent"
6 android:layout_height="match_parent"
7 android:orientation="vertical">
8
9 <include android:id="@+id/toolbar" layout="@layout/toolbar" />
10 <android.support.design.widget.CoordinatorLayout
11 android:id="@+id/coordinator"
12 android:layout_width="match_parent"
13 android:layout_height="match_parent">
14
15 <ScrollView
16 android:layout_width="match_parent"
17 android:layout_height="match_parent"
18 android:fillViewport="true">
19
20 <RelativeLayout
21 android:layout_width="match_parent"
22 android:layout_height="wrap_content">
23
24 <TextView
25 android:id="@+id/instructions"
26 android:layout_width="wrap_content"
27 android:layout_height="wrap_content"
28 android:padding="16dp"
29 android:gravity="center_horizontal"
30 android:textAppearance="@style/TextAppearance.Conversations.Body1"
31 android:text="@string/enter_country_code_and_phone_number"/>
32
33 <LinearLayout
34 android:id="@+id/phone_number_box"
35 android:layout_width="256dp"
36 android:layout_height="wrap_content"
37 android:layout_above="@+id/next"
38 android:layout_below="@+id/instructions"
39 android:layout_centerHorizontal="true"
40 android:orientation="vertical">
41
42 <EditText
43 android:imeOptions="flagNoExtractUi"
44 android:id="@+id/country"
45 style="@style/Widget.Conversations.EditText"
46 android:layout_width="match_parent"
47 android:layout_height="wrap_content"
48 android:cursorVisible="false"
49 android:inputType="textNoSuggestions"
50 android:drawableEnd="@drawable/ic_arrow_drop_down_black_18dp"
51 android:drawableRight="@drawable/ic_arrow_drop_down_black_18dp"
52 android:focusable="false"
53 android:gravity="bottom|center_horizontal"
54 android:longClickable="false" />
55
56 <LinearLayout
57 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
59 android:orientation="horizontal">
60
61 <EditText
62 android:imeOptions="flagNoExtractUi"
63 android:id="@+id/country_code"
64 style="@style/Widget.Conversations.EditText"
65 android:layout_width="0dp"
66 android:layout_height="wrap_content"
67 android:layout_weight="1"
68 android:gravity="bottom|center_horizontal"
69 android:inputType="number"
70 android:longClickable="false"
71 android:maxLength="3"
72 android:maxLines="1" />
73
74 <EditText
75 android:imeOptions="flagNoExtractUi"
76 android:id="@+id/number"
77 style="@style/Widget.Conversations.EditText"
78 android:layout_width="0dp"
79 android:layout_height="wrap_content"
80 android:layout_weight="3"
81 android:hint="@string/phone_number"
82 android:inputType="number"
83 android:gravity="bottom|start"
84 android:longClickable="false"
85 android:maxLines="1" />
86 </LinearLayout>
87
88 <ProgressBar
89 android:id="@+id/progressBar"
90 style="?android:attr/progressBarStyle"
91 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
93 android:layout_gravity="center" />
94 </LinearLayout>
95 <Button
96 android:id="@+id/next"
97 android:layout_alignParentBottom="true"
98 android:layout_alignParentEnd="true"
99 style="@style/Widget.Conversations.Button.Borderless"
100 android:layout_width="wrap_content"
101 android:layout_height="wrap_content"
102 android:text="@string/next"
103 android:textColor="?colorAccent"/>
104 </RelativeLayout>
105 </ScrollView>
106 </android.support.design.widget.CoordinatorLayout>
107 </LinearLayout>
108</layout>