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:fitsSystemWindows="true"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content">
23    <LinearLayout
24        xmlns:android="http://schemas.android.com/apk/res/android"
25        android:orientation="vertical"
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content">
28
29        <TextView
30            android:layout_width="match_parent"
31            android:layout_height="wrap_content"
32            android:text="@string/telecom_default_dialer_test_info"/>
33
34        <RelativeLayout
35            android:layout_width="match_parent"
36            android:layout_height="wrap_content"
37            android:layout_marginTop="@dimen/js_padding"
38            android:layout_marginBottom="@dimen/js_padding">
39
40            <ImageView
41                android:id="@+id/step_1_status"
42                android:layout_width="wrap_content"
43                android:layout_height="wrap_content"
44                android:src="@drawable/fs_indeterminate"
45                android:layout_marginRight="@dimen/js_padding"
46                android:layout_alignParentStart="true"
47                android:layout_alignParentTop="true" />
48            <TextView
49                android:id="@+id/step_1_instructions"
50                android:layout_width="wrap_content"
51                android:layout_height="wrap_content"
52                android:text="@string/telecom_default_dialer_step_1"
53                android:textSize="16dp"
54                android:layout_alignParentRight="true"
55                android:layout_alignParentTop="true"
56                android:layout_toRightOf="@id/step_1_status" />
57            <Button
58                android:layout_width="wrap_content"
59                android:layout_height="wrap_content"
60                android:layout_alignParentRight="true"
61                android:layout_below="@id/step_1_instructions"
62                android:layout_marginLeft="20dip"
63                android:layout_marginRight="20dip"
64                android:layout_toRightOf="@id/step_1_status"
65                android:id="@+id/telecom_default_dialer_set_third_party_dialer_button"
66                android:text="@string/telecom_default_dialer_set_third_party_dialer_button"/>
67        </RelativeLayout>
68
69        <RelativeLayout
70            android:layout_width="match_parent"
71            android:layout_height="wrap_content"
72            android:layout_marginTop="@dimen/js_padding"
73            android:layout_marginBottom="@dimen/js_padding">
74
75            <ImageView
76                android:id="@+id/step_2_status"
77                android:layout_width="wrap_content"
78                android:layout_height="wrap_content"
79                android:src="@drawable/fs_indeterminate"
80                android:layout_marginRight="@dimen/js_padding"
81                android:layout_alignParentStart="true"
82                android:layout_alignParentTop="true" />
83            <TextView
84                android:id="@+id/step_2_instructions"
85                android:layout_width="wrap_content"
86                android:layout_height="wrap_content"
87                android:text="@string/telecom_default_dialer_step_2"
88                android:textSize="16dp"
89                android:layout_alignParentRight="true"
90                android:layout_alignParentTop="true"
91                android:layout_toRightOf="@id/step_2_status" />
92            <Button
93                android:layout_width="wrap_content"
94                android:layout_height="wrap_content"
95                android:layout_alignParentRight="true"
96                android:layout_below="@id/step_2_instructions"
97                android:layout_marginLeft="20dip"
98                android:layout_marginRight="20dip"
99                android:layout_toRightOf="@id/step_2_status"
100                android:id="@+id/telecom_confirm_lock_screen"
101                android:text="@string/telecom_confirm_lock_screen"/>
102        </RelativeLayout>
103
104        <RelativeLayout
105            android:layout_width="match_parent"
106            android:layout_height="wrap_content"
107            android:layout_marginTop="@dimen/js_padding"
108            android:layout_marginBottom="@dimen/js_padding">
109
110            <ImageView
111                android:id="@+id/step_3_status"
112                android:layout_width="wrap_content"
113                android:layout_height="wrap_content"
114                android:src="@drawable/fs_indeterminate"
115                android:layout_marginRight="@dimen/js_padding"
116                android:layout_alignParentStart="true"
117                android:layout_alignParentTop="true" />
118            <TextView
119                android:id="@+id/step_3_instructions"
120                android:layout_width="wrap_content"
121                android:layout_height="wrap_content"
122                android:text="@string/telecom_default_dialer_step_3"
123                android:textSize="16dp"
124                android:layout_alignParentRight="true"
125                android:layout_alignParentTop="true"
126                android:layout_toRightOf="@id/step_3_status" />
127            <Button
128                android:id="@+id/telecom_default_dialer_lock_button"
129                android:layout_width="wrap_content"
130                android:layout_height="wrap_content"
131                android:layout_below="@id/step_3_instructions"
132                android:layout_marginLeft="20dip"
133                android:layout_marginRight="20dip"
134                android:layout_toRightOf="@id/step_3_status"
135                android:text="@string/telecom_default_dialer_lock_button"/>
136        </RelativeLayout>
137
138        <RelativeLayout
139            android:layout_width="match_parent"
140            android:layout_height="wrap_content"
141            android:layout_marginTop="@dimen/js_padding"
142            android:layout_marginBottom="@dimen/js_padding">
143
144            <ImageView
145                android:id="@+id/step_4_status"
146                android:layout_width="wrap_content"
147                android:layout_height="wrap_content"
148                android:src="@drawable/fs_indeterminate"
149                android:layout_marginRight="@dimen/js_padding"
150                android:layout_alignParentStart="true"
151                android:layout_alignParentTop="true" />
152            <TextView
153                android:id="@+id/step_4_instructions"
154                android:layout_width="wrap_content"
155                android:layout_height="wrap_content"
156                android:text="@string/telecom_default_dialer_step_4"
157                android:textSize="16dp"
158                android:layout_alignParentRight="true"
159                android:layout_alignParentTop="true"
160                android:layout_toRightOf="@id/step_4_status" />
161            <Button
162                android:id="@+id/telecom_default_dialer_confirm_button"
163                android:layout_width="wrap_content"
164                android:layout_height="wrap_content"
165                android:layout_alignParentRight="true"
166                android:layout_below="@id/step_4_instructions"
167                android:layout_marginLeft="20dip"
168                android:layout_marginRight="20dip"
169                android:layout_toRightOf="@id/step_4_status"
170                android:text="@string/telecom_default_dialer_confirm_button"/>
171        </RelativeLayout>
172
173        <include layout="@layout/pass_fail_buttons" />
174    </LinearLayout>
175</ScrollView>