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 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:layout_margin="16dp"> 24 <androidx.constraintlayout.widget.ConstraintLayout 25 android:id="@+id/header" 26 android:layout_width="0dp" 27 android:layout_height="wrap_content" 28 app:layout_constraintTop_toTopOf="parent" 29 app:layout_constraintBottom_toTopOf="@id/content" 30 app:layout_constraintLeft_toLeftOf="parent" 31 app:layout_constraintRight_toRightOf="parent"> 32 <ImageView 33 android:id="@+id/header_icon" 34 android:layout_width="40dp" 35 android:layout_height="40dp" 36 android:scaleType="fitCenter" 37 android:contentDescription="@string/header_icon_content_description" 38 app:layout_constraintStart_toStartOf="parent" 39 app:layout_constraintTop_toTopOf="parent"/> 40 <TextView 41 android:id="@+id/header_text" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:layout_marginTop="24dp" 45 android:textSize="32sp" 46 app:layout_constraintStart_toStartOf="parent" 47 app:layout_constraintTop_toBottomOf="@+id/header_icon"/> 48 </androidx.constraintlayout.widget.ConstraintLayout> 49 <androidx.constraintlayout.widget.ConstraintLayout 50 android:id="@+id/content" 51 android:layout_width="0dp" 52 android:layout_height="0dp" 53 app:layout_constraintTop_toBottomOf="@id/header" 54 app:layout_constraintBottom_toTopOf="@id/bottom" 55 app:layout_constraintLeft_toLeftOf="parent" 56 app:layout_constraintRight_toRightOf="parent"> 57 <TextView 58 android:id="@+id/body_text" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:layout_marginTop="24dp" 62 android:textSize="16sp" 63 app:layout_constraintStart_toStartOf="parent" 64 app:layout_constraintTop_toTopOf="parent"/> 65 <TextView 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:layout_marginTop="24dp" 69 android:textSize="16sp" 70 android:text="@string/continue_using_device" 71 app:layout_constraintStart_toStartOf="parent" 72 app:layout_constraintTop_toBottomOf="@id/body_text"/> 73 </androidx.constraintlayout.widget.ConstraintLayout> 74 <androidx.constraintlayout.widget.ConstraintLayout 75 android:id="@+id/bottom" 76 android:layout_width="0dp" 77 android:layout_height="wrap_content" 78 app:layout_constraintTop_toBottomOf="@id/content" 79 app:layout_constraintBottom_toBottomOf="parent" 80 app:layout_constraintLeft_toLeftOf="parent" 81 app:layout_constraintRight_toRightOf="parent"> 82 <Button 83 android:id="@+id/button_ok" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:text="@string/ok" 87 app:layout_constraintTop_toTopOf="parent" 88 app:layout_constraintEnd_toEndOf="parent"/> 89 </androidx.constraintlayout.widget.ConstraintLayout> 90</androidx.constraintlayout.widget.ConstraintLayout> 91