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