1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2023 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<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:layout_margin="16dp"> 23 <androidx.constraintlayout.widget.ConstraintLayout 24 android:id="@+id/header" 25 android:layout_width="0dp" 26 android:layout_height="wrap_content" 27 app:layout_constraintTop_toTopOf="parent" 28 app:layout_constraintBottom_toTopOf="@id/content" 29 app:layout_constraintLeft_toLeftOf="parent" 30 app:layout_constraintRight_toRightOf="parent"> 31 <ImageView 32 android:id="@+id/header_icon" 33 android:layout_width="40dp" 34 android:layout_height="40dp" 35 android:scaleType="fitCenter" 36 android:importantForAccessibility="no" 37 app:layout_constraintStart_toStartOf="parent" 38 app:layout_constraintTop_toTopOf="parent" /> 39 <TextView 40 android:id="@+id/header_text" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_marginTop="24dp" 44 android:textSize="32sp" 45 app:layout_constraintStart_toStartOf="parent" 46 app:layout_constraintTop_toBottomOf="@+id/header_icon" /> 47 </androidx.constraintlayout.widget.ConstraintLayout> 48 <androidx.constraintlayout.widget.ConstraintLayout 49 android:id="@+id/content" 50 android:layout_width="0dp" 51 android:layout_height="0dp" 52 app:layout_constraintTop_toBottomOf="@id/header" 53 app:layout_constraintBottom_toTopOf="@id/bottom" 54 app:layout_constraintLeft_toLeftOf="parent" 55 app:layout_constraintRight_toRightOf="parent"> 56 <androidx.recyclerview.widget.RecyclerView 57 android:id="@+id/recyclerview_device_policy_group" 58 android:layout_width="0dp" 59 android:layout_height="match_parent" 60 android:layout_marginTop="16dp" 61 app:layoutManager="LinearLayoutManager" 62 app:layout_constraintBottom_toBottomOf="parent" 63 app:layout_constraintStart_toStartOf="parent" 64 app:layout_constraintEnd_toEndOf="parent" 65 app:layout_constraintTop_toBottomOf="parent" /> 66 </androidx.constraintlayout.widget.ConstraintLayout> 67 <androidx.constraintlayout.widget.ConstraintLayout 68 android:id="@+id/bottom" 69 android:layout_width="0dp" 70 android:layout_height="wrap_content" 71 app:layout_constraintTop_toBottomOf="@id/content" 72 app:layout_constraintBottom_toBottomOf="parent" 73 app:layout_constraintLeft_toLeftOf="parent" 74 app:layout_constraintRight_toRightOf="parent"> 75 <Button 76 android:id="@+id/button_next" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:text="@string/next" 80 android:visibility="gone" 81 app:layout_constraintTop_toTopOf="parent" 82 app:layout_constraintEnd_toEndOf="parent" /> 83 </androidx.constraintlayout.widget.ConstraintLayout> 84</androidx.constraintlayout.widget.ConstraintLayout> 85