1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2015 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.android.setupwizardlib.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 app:suwFooter="@layout/storage_wizard_footer"> 24 25 <LinearLayout 26 style="@style/SuwContentFrame" 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 android:orientation="vertical"> 30 31 <LinearLayout 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:layout_marginTop="@dimen/suw_description_margin_top" 35 android:orientation="horizontal" 36 android:gravity="center_vertical"> 37 <ImageView 38 android:layout_width="144dp" 39 android:layout_height="144dp" 40 android:scaleType="centerInside" 41 android:src="@drawable/ic_storage_wizard_internal" /> 42 <LinearLayout 43 android:layout_width="0dp" 44 android:layout_height="wrap_content" 45 android:layout_weight="1" 46 android:layout_marginStart="@dimen/suw_glif_margin_sides" 47 android:orientation="vertical"> 48 <TextView 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:layout_marginBottom="@dimen/suw_description_margin_bottom" 52 android:textAppearance="@android:style/TextAppearance.Material.Subhead" 53 android:text="@string/storage_wizard_init_v2_internal_title" /> 54 <TextView 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:layout_marginBottom="@dimen/suw_description_margin_bottom" 58 android:textColor="?android:attr/textColorSecondary" 59 android:text="@string/storage_wizard_init_v2_internal_summary" /> 60 <Button 61 android:id="@+id/storage_wizard_init_internal" 62 style="@style/SuwGlifButton.Primary" 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content" 65 android:text="@string/storage_wizard_init_v2_internal_action" 66 android:onClick="onNavigateInternal" /> 67 </LinearLayout> 68 </LinearLayout> 69 70 <LinearLayout 71 android:layout_width="match_parent" 72 android:layout_height="wrap_content" 73 android:layout_marginTop="@dimen/suw_description_margin_top" 74 android:orientation="horizontal" 75 android:gravity="center_vertical"> 76 <View 77 android:layout_width="0dp" 78 android:layout_height="1dp" 79 android:layout_weight="1" 80 android:background="@android:color/black" 81 android:backgroundTint="?android:attr/textColorTertiary" /> 82 <TextView 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:layout_marginStart="8dp" 86 android:layout_marginEnd="8dp" 87 android:text="@string/storage_wizard_init_v2_or" 88 android:textColor="?android:attr/textColorTertiary" 89 android:textAllCaps="true" /> 90 <View 91 android:layout_width="0dp" 92 android:layout_height="1dp" 93 android:layout_weight="1" 94 android:background="@android:color/black" 95 android:backgroundTint="?android:attr/textColorTertiary" /> 96 </LinearLayout> 97 98 <LinearLayout 99 android:layout_width="match_parent" 100 android:layout_height="wrap_content" 101 android:layout_marginTop="@dimen/suw_description_margin_top" 102 android:orientation="horizontal" 103 android:gravity="center_vertical"> 104 <ImageView 105 android:layout_width="144dp" 106 android:layout_height="144dp" 107 android:scaleType="centerInside" 108 android:src="@drawable/ic_storage_wizard_external" /> 109 <LinearLayout 110 android:layout_width="0dp" 111 android:layout_height="wrap_content" 112 android:layout_weight="1" 113 android:layout_marginStart="@dimen/suw_glif_margin_sides" 114 android:orientation="vertical"> 115 <TextView 116 android:layout_width="match_parent" 117 android:layout_height="wrap_content" 118 android:layout_marginBottom="@dimen/suw_description_margin_bottom" 119 android:textAppearance="@android:style/TextAppearance.Material.Subhead" 120 android:text="@string/storage_wizard_init_v2_external_title" /> 121 <TextView 122 android:layout_width="match_parent" 123 android:layout_height="wrap_content" 124 android:layout_marginBottom="@dimen/suw_description_margin_bottom" 125 android:textColor="?android:attr/textColorSecondary" 126 android:text="@string/storage_wizard_init_v2_external_summary" /> 127 <Button 128 android:id="@+id/storage_wizard_init_external" 129 style="@style/SuwGlifButton.Primary" 130 android:layout_width="wrap_content" 131 android:layout_height="wrap_content" 132 android:text="@string/storage_wizard_init_v2_external_action" 133 android:onClick="onNavigateExternal" /> 134 </LinearLayout> 135 </LinearLayout> 136 137 </LinearLayout> 138 139</com.android.setupwizardlib.GlifLayout> 140