1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright 2024 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 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:orientation="vertical" 22 android:layout_marginEnd="24dp" 23 android:layout_marginTop="24dp" 24 android:fitsSystemWindows="true"> 25 26 <TextView 27 android:layout_height="wrap_content" 28 android:layout_width="wrap_content" 29 android:text="@string/settings_recovery_title" 30 android:textSize="48sp" 31 android:hyphenationFrequency="full" 32 android:layout_marginStart="24dp" 33 android:layout_marginBottom="24dp"/> 34 <FrameLayout 35 android:layout_width="match_parent" 36 android:layout_height="match_parent"> 37 <com.google.android.material.progressindicator.CircularProgressIndicator 38 android:id="@+id/recovery_boot_progress" 39 android:indeterminate="true" 40 android:layout_gravity="center" 41 android:visibility="invisible" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content"/> 44 <LinearLayout 45 android:id="@+id/setting_recovery_card_container" 46 android:layout_width="match_parent" 47 android:layout_height="wrap_content" 48 android:orientation="vertical" > 49 <!-- TODO: consider custom view for settings item --> 50 <com.google.android.material.card.MaterialCardView 51 android:id="@+id/settings_recovery_reset_card" 52 app:strokeWidth="0dp" 53 app:cardCornerRadius="0dp" 54 app:checkedIcon="@null" 55 android:focusable="true" 56 android:longClickable="false" 57 android:layout_height="wrap_content" 58 android:layout_width="match_parent"> 59 <androidx.constraintlayout.widget.ConstraintLayout 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:layout_marginEnd="16dp" 63 android:layout_marginStart="24dp"> 64 <TextView 65 android:id="@+id/settings_recovery_reset_title" 66 android:layout_width="0dp" 67 android:layout_height="wrap_content" 68 android:layout_marginTop="20dp" 69 android:layout_marginStart="24dp" 70 android:textSize="20sp" 71 android:text="@string/settings_recovery_reset_title" 72 app:layout_constraintTop_toTopOf="parent" 73 app:layout_constraintBottom_toTopOf="@+id/settings_recovery_reset_sub_title" 74 app:layout_constraintStart_toStartOf="parent" /> 75 <TextView 76 android:id="@+id/settings_recovery_reset_sub_title" 77 android:layout_width="0dp" 78 android:layout_height="wrap_content" 79 android:textSize="14sp" 80 android:layout_marginBottom="20dp" 81 android:layout_marginStart="24dp" 82 android:text="@string/settings_recovery_reset_sub_title" 83 app:layout_constraintTop_toBottomOf="@+id/settings_recovery_reset_title" 84 app:layout_constraintBottom_toBottomOf="parent" 85 app:layout_constraintStart_toStartOf="parent" /> 86 </androidx.constraintlayout.widget.ConstraintLayout> 87 </com.google.android.material.card.MaterialCardView> 88 <com.google.android.material.card.MaterialCardView 89 android:id="@+id/settings_recovery_reset_backup_card" 90 app:strokeWidth="0dp" 91 app:cardCornerRadius="0dp" 92 app:checkedIcon="@null" 93 android:focusable="true" 94 android:longClickable="false" 95 android:layout_height="wrap_content" 96 android:layout_width="match_parent"> 97 <androidx.constraintlayout.widget.ConstraintLayout 98 android:layout_width="match_parent" 99 android:layout_height="wrap_content" 100 android:layout_marginEnd="16dp" 101 android:layout_marginStart="24dp"> 102 <TextView 103 android:id="@+id/settings_recovery_reset_backup_title" 104 android:layout_width="0dp" 105 android:layout_height="wrap_content" 106 android:layout_marginTop="20dp" 107 android:layout_marginStart="24dp" 108 android:textSize="20sp" 109 android:text="@string/settings_recovery_remove_backup_title" 110 app:layout_constraintTop_toTopOf="parent" 111 app:layout_constraintBottom_toTopOf="@+id/settings_recovery_reset_backup_sub_title" 112 app:layout_constraintStart_toStartOf="parent" /> 113 <TextView 114 android:id="@+id/settings_recovery_reset_backup_sub_title" 115 android:layout_width="0dp" 116 android:layout_height="wrap_content" 117 android:textSize="14sp" 118 android:layout_marginBottom="20dp" 119 android:layout_marginStart="24dp" 120 android:text="@string/settings_recovery_remove_backup_sub_title" 121 app:layout_constraintTop_toBottomOf="@+id/settings_recovery_reset_backup_title" 122 app:layout_constraintBottom_toBottomOf="parent" 123 app:layout_constraintStart_toStartOf="parent" /> 124 </androidx.constraintlayout.widget.ConstraintLayout> 125 </com.google.android.material.card.MaterialCardView> 126 </LinearLayout> 127 </FrameLayout> 128</LinearLayout> 129