1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2021 The Android Open Source Project 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14--> 15<ScrollView 16 xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_width="match_parent" 18 android:layout_height="match_parent" 19 style="@style/ScrollViewStyle" 20 android:importantForAccessibility="no"> 21 22 <LinearLayout 23 android:id="@+id/activity_confirmation" 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:baselineAligned="false" 27 android:importantForAccessibility="no"> 28 29 <LinearLayout android:id="@+id/association_confirmation" 30 style="@style/ContainerLayout"> 31 32 <!-- A header for selfManaged devices only. --> 33 <include layout="@layout/vendor_header" /> 34 35 <!-- Do NOT change the ID of the root LinearLayout above: 36 it's referenced in CTS tests. --> 37 38 <ImageView 39 android:id="@+id/profile_icon" 40 android:layout_width="match_parent" 41 android:layout_height="32dp" 42 android:gravity="center" 43 android:layout_marginTop="18dp" /> 44 45 <LinearLayout style="@style/Description"> 46 <TextView 47 android:id="@+id/title" 48 style="@style/DescriptionTitle" /> 49 50 <TextView 51 android:id="@+id/summary" 52 style="@style/DescriptionSummary" /> 53 54 </LinearLayout> 55 56 <RelativeLayout 57 android:layout_width="match_parent" 58 android:layout_height="0dp" 59 android:layout_weight="1"> 60 61 <androidx.constraintlayout.widget.ConstraintLayout 62 xmlns:app="http://schemas.android.com/apk/res-auto" 63 android:id="@+id/constraint_list" 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 android:visibility="gone"> 67 68 <androidx.recyclerview.widget.RecyclerView 69 android:id="@+id/device_list" 70 android:layout_width="match_parent" 71 android:layout_height="200dp" 72 android:scrollbars="vertical" 73 android:visibility="gone" /> 74 75 <androidx.recyclerview.widget.RecyclerView 76 android:id="@+id/permission_list" 77 android:layout_width="match_parent" 78 android:layout_height="wrap_content" 79 android:scrollbars="vertical" 80 android:fadeScrollbars="false" 81 app:layout_constraintHeight_max="220dp" 82 android:visibility="gone" /> 83 84 <View 85 android:id="@+id/border_top" 86 style="@style/DeviceListBorder" /> 87 88 <View 89 android:id="@+id/border_bottom" 90 app:layout_constraintBottom_toBottomOf="parent" 91 style="@style/DeviceListBorder" /> 92 93 </androidx.constraintlayout.widget.ConstraintLayout> 94 95 <ProgressBar 96 android:id="@+id/spinner_multiple_device" 97 android:visibility="gone" 98 style="@style/Spinner" /> 99 100 </RelativeLayout> 101 102 <LinearLayout 103 android:layout_width="match_parent" 104 android:layout_height="wrap_content" 105 android:gravity="center" 106 android:orientation="vertical" 107 android:layout_marginTop="16dp"> 108 109 <!-- Do NOT change the IDs of the buttons: they are referenced in CTS tests. --> 110 111 <Button 112 android:id="@+id/btn_positive" 113 style="@style/PositiveButton" 114 android:text="@string/consent_yes" /> 115 116 <Button 117 android:id="@+id/btn_negative" 118 android:layout_marginBottom="12dp" 119 style="@style/NegativeButton" 120 android:text="@string/consent_no" /> 121 122 </LinearLayout> 123 124 <LinearLayout 125 android:layout_width="match_parent" 126 android:layout_height="wrap_content" 127 android:orientation="horizontal" 128 android:gravity="bottom|end" 129 android:layout_marginEnd="16dp" 130 android:layout_marginBottom="16dp"> 131 132 <!-- Do NOT change the IDs of the buttons: they are referenced in CTS tests. --> 133 <LinearLayout 134 android:id="@+id/negative_multiple_devices_layout" 135 android:layout_width="wrap_content" 136 android:layout_height="48dp" 137 android:gravity="center" 138 android:visibility="gone"> 139 140 <Button 141 android:id="@+id/btn_negative_multiple_devices" 142 style="@style/NegativeButtonMultipleDevices" 143 android:textColor="?android:textColorPrimary" 144 android:visibility="gone" 145 android:duplicateParentState="true" 146 android:clickable="false" 147 android:text="@string/consent_cancel" /> 148 149 </LinearLayout> 150 151 </LinearLayout> 152 153 </LinearLayout> 154 155 <RelativeLayout 156 android:layout_width="match_parent" 157 android:layout_height="match_parent" 158 android:layout_weight="1" 159 android:importantForAccessibility="noHideDescendants"> 160 161 <ProgressBar 162 android:id="@+id/spinner_single_device" 163 android:visibility="gone" 164 style="@style/Spinner" /> 165 </RelativeLayout>> 166 167 </LinearLayout> 168 169</ScrollView>