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 <!-- A device icon for selfManaged devices only. --> 35 <ImageView 36 android:id="@+id/device_icon" 37 android:visibility="gone" 38 android:contentDescription="@null" 39 style="@style/DeviceIcon" /> 40 41 <!-- Do NOT change the ID of the root LinearLayout above: 42 it's referenced in CTS tests. --> 43 44 <ImageView 45 android:id="@+id/profile_icon" 46 android:layout_width="match_parent" 47 android:layout_height="32dp" 48 android:gravity="center" 49 android:layout_marginTop="18dp" /> 50 51 <LinearLayout style="@style/Description"> 52 <TextView 53 android:id="@+id/title" 54 style="@style/DescriptionTitle" /> 55 56 <TextView 57 android:id="@+id/summary" 58 style="@style/DescriptionSummary" /> 59 60 </LinearLayout> 61 62 <RelativeLayout 63 android:layout_width="match_parent" 64 android:layout_height="0dp" 65 android:layout_weight="1"> 66 67 <androidx.constraintlayout.widget.ConstraintLayout 68 xmlns:app="http://schemas.android.com/apk/res-auto" 69 android:id="@+id/constraint_list" 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:visibility="gone"> 73 74 <androidx.recyclerview.widget.RecyclerView 75 android:id="@+id/device_list" 76 android:layout_width="match_parent" 77 android:layout_height="200dp" 78 android:scrollbars="vertical" 79 android:visibility="gone" /> 80 81 <androidx.recyclerview.widget.RecyclerView 82 android:id="@+id/permission_list" 83 android:layout_width="match_parent" 84 android:layout_height="wrap_content" 85 android:scrollbars="vertical" 86 android:fadeScrollbars="false" 87 app:layout_constraintHeight_max="220dp" 88 android:visibility="gone" /> 89 90 <View 91 android:id="@+id/border_top" 92 style="@style/DeviceListBorder" /> 93 94 <View 95 android:id="@+id/border_bottom" 96 app:layout_constraintBottom_toBottomOf="parent" 97 style="@style/DeviceListBorder" /> 98 99 </androidx.constraintlayout.widget.ConstraintLayout> 100 101 <ProgressBar 102 android:id="@+id/spinner_multiple_device" 103 android:visibility="gone" 104 style="@style/Spinner" /> 105 106 </RelativeLayout> 107 108 <LinearLayout 109 android:layout_width="match_parent" 110 android:layout_height="wrap_content" 111 android:gravity="center" 112 android:orientation="vertical" 113 android:layout_marginTop="16dp"> 114 115 <!-- Do NOT change the IDs of the buttons: they are referenced in CTS tests. --> 116 117 <Button 118 android:id="@+id/btn_positive" 119 style="@style/PositiveButton" 120 android:text="@string/consent_yes" /> 121 122 <Button 123 android:id="@+id/btn_negative" 124 android:layout_marginBottom="12dp" 125 style="@style/NegativeButton" 126 android:text="@string/consent_no" /> 127 128 </LinearLayout> 129 130 <LinearLayout 131 android:layout_width="match_parent" 132 android:layout_height="wrap_content" 133 android:orientation="horizontal" 134 android:gravity="bottom|end" 135 android:layout_marginEnd="16dp" 136 android:layout_marginBottom="16dp"> 137 138 <!-- Do NOT change the IDs of the buttons: they are referenced in CTS tests. --> 139 <LinearLayout 140 android:id="@+id/negative_multiple_devices_layout" 141 android:layout_width="wrap_content" 142 android:layout_height="match_parent" 143 android:padding="6dp" 144 android:gravity="center" 145 android:visibility="gone"> 146 147 <Button 148 android:id="@+id/btn_negative_multiple_devices" 149 style="@style/NegativeButtonMultipleDevices" 150 android:textColor="?android:textColorPrimary" 151 android:visibility="gone" 152 android:duplicateParentState="true" 153 android:clickable="false" 154 android:text="@string/consent_cancel" /> 155 156 </LinearLayout> 157 158 </LinearLayout> 159 160 </LinearLayout> 161 162 <RelativeLayout 163 android:layout_width="match_parent" 164 android:layout_height="match_parent" 165 android:layout_weight="1" 166 android:importantForAccessibility="noHideDescendants"> 167 168 <ProgressBar 169 android:id="@+id/spinner_single_device" 170 android:visibility="gone" 171 style="@style/Spinner" /> 172 </RelativeLayout>> 173 174 </LinearLayout> 175 176</ScrollView>