1<!-- 2 ~ Copyright (C) 2023 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 --> 16<androidx.constraintlayout.widget.ConstraintLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:layout_margin="16dp"> 22 <androidx.constraintlayout.widget.ConstraintLayout 23 android:id="@+id/header" 24 android:layout_width="0dp" 25 android:layout_height="wrap_content" 26 app:layout_constraintTop_toTopOf="parent" 27 app:layout_constraintBottom_toTopOf="@id/progress_bar" 28 app:layout_constraintLeft_toLeftOf="parent" 29 app:layout_constraintRight_toRightOf="parent"> 30 <ImageView 31 android:id="@+id/header_icon" 32 android:layout_width="40dp" 33 android:layout_height="40dp" 34 android:scaleType="fitCenter" 35 android:importantForAccessibility="no" 36 app:layout_constraintStart_toStartOf="parent" 37 app:layout_constraintTop_toTopOf="parent"/> 38 <TextView 39 android:id="@+id/header_text" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:layout_marginTop="24dp" 43 android:textSize="32sp" 44 app:layout_constraintStart_toStartOf="parent" 45 app:layout_constraintTop_toBottomOf="@+id/header_icon"/> 46 <TextView 47 android:id="@+id/subheader_text" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:layout_marginTop="24dp" 51 android:textSize="@dimen/provision_screen_sub_header_text_size" 52 app:layout_constraintStart_toStartOf="parent" 53 app:layout_constraintTop_toBottomOf="@+id/header_text"/> 54 <!-- TODO(b/296582802): Review this with UI/UX --> 55 <Chronometer 56 android:id="@+id/countdown_text" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:textSize="@dimen/provision_screen_sub_header_text_size" 60 android:countDown="true" 61 android:format="@string/device_reset_timer_notification_title" 62 android:visibility="gone" 63 app:layout_constraintStart_toStartOf="parent" 64 app:layout_constraintTop_toBottomOf="@+id/subheader_text" /> 65 </androidx.constraintlayout.widget.ConstraintLayout> 66 <androidx.constraintlayout.widget.ConstraintLayout 67 android:id="@+id/content" 68 android:layout_width="0dp" 69 android:layout_height="0dp" 70 app:layout_constraintTop_toBottomOf="@id/header" 71 app:layout_constraintBottom_toTopOf="@id/bottom" 72 app:layout_constraintLeft_toLeftOf="parent" 73 app:layout_constraintRight_toRightOf="parent"> 74 <ProgressBar 75 android:id="@+id/progress_bar" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 app:layout_constraintStart_toStartOf="parent" 79 app:layout_constraintTop_toTopOf="parent"/> 80 </androidx.constraintlayout.widget.ConstraintLayout> 81 <androidx.constraintlayout.widget.ConstraintLayout 82 android:id="@+id/bottom" 83 android:layout_width="0dp" 84 android:layout_height="wrap_content" 85 android:visibility="gone" 86 app:layout_constraintTop_toBottomOf="@id/content" 87 app:layout_constraintBottom_toBottomOf="parent" 88 app:layout_constraintLeft_toLeftOf="parent" 89 app:layout_constraintRight_toRightOf="parent"> 90 <Button 91 android:id="@+id/button_exit" 92 android:layout_width="wrap_content" 93 android:layout_height="wrap_content" 94 android:text="@string/exit" 95 app:layout_constraintBottom_toBottomOf="parent" 96 app:layout_constraintStart_toStartOf="parent" /> 97 <Button 98 android:id="@+id/button_retry" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:text="@string/retry" 102 app:layout_constraintBottom_toBottomOf="parent" 103 app:layout_constraintEnd_toEndOf="parent"/> 104 </androidx.constraintlayout.widget.ConstraintLayout> 105</androidx.constraintlayout.widget.ConstraintLayout> 106