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:contentDescription="@string/header_icon_content_description" 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="16sp" 52 app:layout_constraintStart_toStartOf="parent" 53 app:layout_constraintTop_toBottomOf="@+id/header_text"/> 54 </androidx.constraintlayout.widget.ConstraintLayout> 55 <ProgressBar 56 android:id="@+id/progress_bar" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 app:layout_constraintStart_toStartOf="parent" 60 app:layout_constraintTop_toBottomOf="@+id/header"/> 61</androidx.constraintlayout.widget.ConstraintLayout> 62