1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 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<com.google.android.setupdesign.GlifLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:id="@+id/setup_wizard_layout" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:orientation="vertical" 24 android:theme="@style/SudThemeGlifV3.DayNight" 25 android:icon="@drawable/ic_delete_accent" 26 app:sucHeaderText="@string/master_clear_title"> 27 28 <ScrollView 29 android:id="@+id/master_clear_scrollview" 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:layout_marginStart="@dimen/reset_master_clear_margin_start" 33 android:layout_marginEnd="@dimen/reset_master_clear_margin_end"> 34 35 <LinearLayout 36 android:id="@+id/master_clear_container" 37 style="@style/SudContentFrame" 38 android:layout_width="match_parent" 39 android:layout_height="wrap_content" 40 android:orientation="vertical"> 41 42 <TextView 43 style="@style/TextAppearance.SudGlifItemSummary" 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content" 46 android:text="@string/master_clear_desc"/> 47 <TextView 48 android:id="@+id/also_erases_external" 49 style="@style/TextAppearance.SudGlifItemSummary" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:visibility="gone" 53 android:text="@string/master_clear_desc_also_erases_external"/> 54 <TextView 55 android:id="@+id/also_erases_esim" 56 style="@style/TextAppearance.SudGlifItemSummary" 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:visibility="gone" 60 android:text="@string/master_clear_desc_also_erases_esim"/> 61 <TextView 62 android:id="@+id/accounts_label" 63 style="@style/TextAppearance.SudGlifItemSummary" 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 android:visibility="gone" 67 android:text="@string/master_clear_accounts"/> 68 <LinearLayout 69 android:id="@+id/accounts" 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:orientation="vertical" 73 android:visibility="gone"> 74 <!-- Do not add any children here as they will be removed in the MasterClear.java 75 code. A list of accounts will be inserted programmatically. --> 76 </LinearLayout> 77 <TextView 78 android:id="@+id/other_users_present" 79 style="@style/TextAppearance.SudGlifItemSummary" 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:visibility="gone" 83 android:text="@string/master_clear_other_users_present"/> 84 <TextView 85 android:id="@+id/no_cancel_mobile_plan" 86 style="@style/TextAppearance.SudGlifItemSummary" 87 android:layout_width="match_parent" 88 android:layout_height="wrap_content" 89 android:visibility="gone" 90 android:text="@string/master_clear_desc_no_cancel_mobile_plan"/> 91 <TextView 92 android:id="@+id/erase_external_option_text" 93 style="@style/TextAppearance.SudGlifItemSummary" 94 android:layout_width="match_parent" 95 android:layout_height="wrap_content" 96 android:text="@string/master_clear_desc_erase_external_storage"/> 97 <LinearLayout 98 android:id="@+id/erase_external_container" 99 android:layout_width="match_parent" 100 android:layout_height="wrap_content" 101 android:orientation="horizontal" 102 android:focusable="true" 103 android:clickable="true"> 104 <CheckBox 105 android:id="@+id/erase_external" 106 style="@style/SudCheckBox" 107 android:layout_width="wrap_content" 108 android:layout_height="wrap_content" 109 android:layout_gravity="center_vertical" 110 android:focusable="false" 111 android:clickable="false" 112 android:duplicateParentState="true"/> 113 <LinearLayout 114 android:layout_width="match_parent" 115 android:layout_height="wrap_content" 116 android:layout_gravity="center_vertical" 117 android:orientation="vertical"> 118 <TextView 119 style="@style/TextAppearance.SudGlifItemTitle" 120 android:layout_width="wrap_content" 121 android:layout_height="wrap_content" 122 android:text="@string/erase_external_storage"/> 123 <TextView 124 style="@style/TextAppearance.SudGlifItemSummary" 125 android:layout_width="wrap_content" 126 android:layout_height="wrap_content" 127 android:text="@string/erase_external_storage_description"/> 128 </LinearLayout> 129 </LinearLayout> 130 131 <include layout="@layout/reset_esim_checkbox"/> 132 133 </LinearLayout> 134 </ScrollView> 135</com.google.android.setupdesign.GlifLayout> 136