153 lines
5.7 KiB
XML
153 lines
5.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2021 The Android Open Source Project
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<ScrollView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
style="@style/ScrollViewStyle">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/activity_confirmation"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:baselineAligned="false">
|
|
|
|
<LinearLayout android:id="@+id/association_confirmation"
|
|
style="@style/ContainerLayout">
|
|
|
|
<!-- A header for selfManaged devices only. -->
|
|
<include layout="@layout/vendor_header" />
|
|
|
|
<!-- Do NOT change the ID of the root LinearLayout above:
|
|
it's referenced in CTS tests. -->
|
|
|
|
<ImageView
|
|
android:id="@+id/profile_icon"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="32dp"
|
|
android:gravity="center"
|
|
android:layout_marginTop="18dp"
|
|
android:tint="@android:color/system_accent1_600"/>
|
|
|
|
<LinearLayout style="@style/Description">
|
|
<TextView
|
|
android:id="@+id/title"
|
|
style="@style/DescriptionTitle" />
|
|
|
|
<TextView
|
|
android:id="@+id/summary"
|
|
style="@style/DescriptionSummary" />
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/multiple_device_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_marginBottom="12dp"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<View
|
|
android:id="@+id/border_top"
|
|
style="@style/DeviceListBorder" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/device_list"
|
|
android:layout_width="match_parent"
|
|
android:scrollbars="vertical"
|
|
android:layout_marginBottom="12dp"
|
|
android:layout_height="200dp" />
|
|
|
|
<View
|
|
android:id="@+id/border_bottom"
|
|
style="@style/DeviceListBorder" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/permission_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/spinner_multiple_device"
|
|
android:visibility="gone"
|
|
style="@style/Spinner" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="16dp">
|
|
|
|
<!-- Do NOT change the IDs of the buttons: they are referenced in CTS tests. -->
|
|
|
|
<Button
|
|
android:id="@+id/btn_positive"
|
|
style="@style/PositiveButton"
|
|
android:text="@string/consent_yes" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_negative"
|
|
android:layout_marginBottom="12dp"
|
|
style="@style/NegativeButton"
|
|
android:text="@string/consent_no" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="bottom|end"
|
|
android:orientation="vertical"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginBottom="16dp">
|
|
|
|
<!-- Do NOT change the IDs of the buttons: they are referenced in CTS tests. -->
|
|
|
|
<Button
|
|
android:id="@+id/btn_negative_multiple_devices"
|
|
style="@style/NegativeButtonMultipleDevices"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:visibility="gone"
|
|
android:text="@string/consent_no" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1">
|
|
|
|
<ProgressBar
|
|
android:id="@+id/spinner_single_device"
|
|
android:visibility="gone"
|
|
style="@style/Spinner" />
|
|
</RelativeLayout>>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView> |