1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2017 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        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_enable_phone_account_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_enable_phone_account_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_enable_phone_account_register_button"
65                android:text="@string/telecom_enable_phone_account_register_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_enable_phone_account_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:id="@+id/telecom_enable_phone_account_confirm_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:text="@string/telecom_enable_phone_account_confirm_button"/>
101        </RelativeLayout>
102
103        <include layout="@layout/pass_fail_buttons" />
104    </LinearLayout>
105</ScrollView>