1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2020 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<ScrollView
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content">
22    <LinearLayout
23        xmlns:android="http://schemas.android.com/apk/res/android"
24        android:orientation="vertical"
25        android:layout_width="match_parent"
26        android:layout_height="wrap_content">
27
28        <TextView
29            android:layout_width="match_parent"
30            android:layout_height="wrap_content"
31            android:text="@string/telecom_default_dialer_test_info"/>
32
33        <RelativeLayout
34            android:layout_width="match_parent"
35            android:layout_height="wrap_content"
36            android:layout_marginTop="@dimen/js_padding"
37            android:layout_marginBottom="@dimen/js_padding">
38
39            <ImageView
40                android:id="@+id/step_1_status"
41                android:layout_width="wrap_content"
42                android:layout_height="wrap_content"
43                android:src="@drawable/fs_indeterminate"
44                android:layout_marginRight="@dimen/js_padding"
45                android:layout_alignParentStart="true"
46                android:layout_alignParentTop="true" />
47            <TextView
48                android:id="@+id/step_1_instructions"
49                android:layout_width="wrap_content"
50                android:layout_height="wrap_content"
51                android:text="@string/telecom_default_dialer_step_1"
52                android:textSize="16dp"
53                android:layout_alignParentRight="true"
54                android:layout_alignParentTop="true"
55                android:layout_toRightOf="@id/step_1_status" />
56            <Button
57                android:layout_width="wrap_content"
58                android:layout_height="wrap_content"
59                android:layout_alignParentRight="true"
60                android:layout_below="@id/step_1_instructions"
61                android:layout_marginLeft="20dip"
62                android:layout_marginRight="20dip"
63                android:layout_toRightOf="@id/step_1_status"
64                android:id="@+id/telecom_default_dialer_set_third_party_dialer_button"
65                android:text="@string/telecom_default_dialer_set_third_party_dialer_button"/>
66        </RelativeLayout>
67
68        <RelativeLayout
69            android:layout_width="match_parent"
70            android:layout_height="wrap_content"
71            android:layout_marginTop="@dimen/js_padding"
72            android:layout_marginBottom="@dimen/js_padding">
73
74            <ImageView
75                android:id="@+id/step_2_status"
76                android:layout_width="wrap_content"
77                android:layout_height="wrap_content"
78                android:src="@drawable/fs_indeterminate"
79                android:layout_marginRight="@dimen/js_padding"
80                android:layout_alignParentStart="true"
81                android:layout_alignParentTop="true" />
82            <TextView
83                android:id="@+id/step_2_instructions"
84                android:layout_width="wrap_content"
85                android:layout_height="wrap_content"
86                android:text="@string/telecom_default_dialer_step_2"
87                android:textSize="16dp"
88                android:layout_alignParentRight="true"
89                android:layout_alignParentTop="true"
90                android:layout_toRightOf="@id/step_2_status" />
91            <Button
92                android:layout_width="wrap_content"
93                android:layout_height="wrap_content"
94                android:layout_alignParentRight="true"
95                android:layout_below="@id/step_2_instructions"
96                android:layout_marginLeft="20dip"
97                android:layout_marginRight="20dip"
98                android:layout_toRightOf="@id/step_2_status"
99                android:id="@+id/telecom_confirm_lock_screen"
100                android:text="@string/telecom_confirm_lock_screen"/>
101        </RelativeLayout>
102
103        <RelativeLayout
104            android:layout_width="match_parent"
105            android:layout_height="wrap_content"
106            android:layout_marginTop="@dimen/js_padding"
107            android:layout_marginBottom="@dimen/js_padding">
108
109            <ImageView
110                android:id="@+id/step_3_status"
111                android:layout_width="wrap_content"
112                android:layout_height="wrap_content"
113                android:src="@drawable/fs_indeterminate"
114                android:layout_marginRight="@dimen/js_padding"
115                android:layout_alignParentStart="true"
116                android:layout_alignParentTop="true" />
117            <TextView
118                android:id="@+id/step_3_instructions"
119                android:layout_width="wrap_content"
120                android:layout_height="wrap_content"
121                android:text="@string/telecom_default_dialer_step_3"
122                android:textSize="16dp"
123                android:layout_alignParentRight="true"
124                android:layout_alignParentTop="true"
125                android:layout_toRightOf="@id/step_3_status" />
126            <Button
127                android:id="@+id/telecom_default_dialer_lock_button"
128                android:layout_width="wrap_content"
129                android:layout_height="wrap_content"
130                android:layout_below="@id/step_3_instructions"
131                android:layout_marginLeft="20dip"
132                android:layout_marginRight="20dip"
133                android:layout_toRightOf="@id/step_3_status"
134                android:text="@string/telecom_default_dialer_lock_button"/>
135        </RelativeLayout>
136
137        <RelativeLayout
138            android:layout_width="match_parent"
139            android:layout_height="wrap_content"
140            android:layout_marginTop="@dimen/js_padding"
141            android:layout_marginBottom="@dimen/js_padding">
142
143            <ImageView
144                android:id="@+id/step_4_status"
145                android:layout_width="wrap_content"
146                android:layout_height="wrap_content"
147                android:src="@drawable/fs_indeterminate"
148                android:layout_marginRight="@dimen/js_padding"
149                android:layout_alignParentStart="true"
150                android:layout_alignParentTop="true" />
151            <TextView
152                android:id="@+id/step_4_instructions"
153                android:layout_width="wrap_content"
154                android:layout_height="wrap_content"
155                android:text="@string/telecom_default_dialer_step_4"
156                android:textSize="16dp"
157                android:layout_alignParentRight="true"
158                android:layout_alignParentTop="true"
159                android:layout_toRightOf="@id/step_4_status" />
160            <Button
161                android:id="@+id/telecom_default_dialer_confirm_button"
162                android:layout_width="wrap_content"
163                android:layout_height="wrap_content"
164                android:layout_alignParentRight="true"
165                android:layout_below="@id/step_4_instructions"
166                android:layout_marginLeft="20dip"
167                android:layout_marginRight="20dip"
168                android:layout_toRightOf="@id/step_4_status"
169                android:text="@string/telecom_default_dialer_confirm_button"/>
170        </RelativeLayout>
171
172        <include layout="@layout/pass_fail_buttons" />
173    </LinearLayout>
174</ScrollView>