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: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_incoming_call_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_incoming_call_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_incoming_call_register_enable_phone_account_button" 65 android:text="@string/telecom_incoming_call_register_enable_phone_account_button"/> 66 <Button 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:layout_alignParentRight="true" 70 android:layout_below="@id/telecom_incoming_call_register_enable_phone_account_button" 71 android:layout_marginLeft="20dip" 72 android:layout_marginRight="20dip" 73 android:id="@+id/telecom_incoming_call_confirm_register_button" 74 android:text="@string/telecom_incoming_call_confirm_register_button"/> 75 </RelativeLayout> 76 77 <RelativeLayout 78 android:layout_width="match_parent" 79 android:layout_height="wrap_content" 80 android:layout_marginTop="@dimen/js_padding" 81 android:layout_marginBottom="@dimen/js_padding"> 82 83 <ImageView 84 android:id="@+id/step_2_status" 85 android:layout_width="wrap_content" 86 android:layout_height="wrap_content" 87 android:src="@drawable/fs_indeterminate" 88 android:layout_marginRight="@dimen/js_padding" 89 android:layout_alignParentStart="true" 90 android:layout_alignParentTop="true" /> 91 <TextView 92 android:id="@+id/step_2_instructions" 93 android:layout_width="wrap_content" 94 android:layout_height="wrap_content" 95 android:text="@string/telecom_incoming_call_step_2" 96 android:textSize="16dp" 97 android:layout_alignParentRight="true" 98 android:layout_alignParentTop="true" 99 android:layout_toRightOf="@id/step_2_status" /> 100 <Button 101 android:id="@+id/telecom_incoming_call_dial_button" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" 104 android:layout_alignParentRight="true" 105 android:layout_below="@id/step_2_instructions" 106 android:layout_marginLeft="20dip" 107 android:layout_marginRight="20dip" 108 android:layout_toRightOf="@id/step_2_status" 109 android:text="@string/telecom_incoming_call_dial_button"/> 110 </RelativeLayout> 111 112 <RelativeLayout 113 android:layout_width="match_parent" 114 android:layout_height="wrap_content" 115 android:layout_marginTop="@dimen/js_padding" 116 android:layout_marginBottom="@dimen/js_padding"> 117 118 <ImageView 119 android:id="@+id/step_3_status" 120 android:layout_width="wrap_content" 121 android:layout_height="wrap_content" 122 android:src="@drawable/fs_indeterminate" 123 android:layout_marginRight="@dimen/js_padding" 124 android:layout_alignParentStart="true" 125 android:layout_alignParentTop="true" /> 126 <TextView 127 android:id="@+id/step_3_instructions" 128 android:layout_width="wrap_content" 129 android:layout_height="wrap_content" 130 android:text="@string/telecom_incoming_call_step_3" 131 android:textSize="16dp" 132 android:layout_alignParentRight="true" 133 android:layout_alignParentTop="true" 134 android:layout_toRightOf="@id/step_3_status" /> 135 <Button 136 android:id="@+id/telecom_incoming_call_confirm_button" 137 android:layout_width="wrap_content" 138 android:layout_height="wrap_content" 139 android:layout_alignParentRight="true" 140 android:layout_below="@id/step_3_instructions" 141 android:layout_marginLeft="20dip" 142 android:layout_marginRight="20dip" 143 android:layout_toRightOf="@id/step_3_status" 144 android:text="@string/telecom_incoming_call_confirm_button"/> 145 </RelativeLayout> 146 147 <include layout="@layout/pass_fail_buttons" /> 148 </LinearLayout> 149 </ScrollView>