1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2020 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<com.android.launcher3.hybridhotseat.HotseatEduDialog xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:launcher="http://schemas.android.com/apk/res-auto" 18 android:layout_width="match_parent" 19 android:layout_gravity="bottom" 20 android:layout_height="wrap_content" 21 android:gravity="bottom" 22 android:orientation="vertical"> 23 24 <View 25 android:layout_width="match_parent" 26 android:layout_height="32dp" 27 android:backgroundTint="?attr/eduHalfSheetBGColor" 28 android:background="@drawable/bottom_sheet_top_border" /> 29 30 <LinearLayout 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:background="?attr/eduHalfSheetBGColor" 34 android:orientation="vertical"> 35 36 <TextView 37 style="@style/TextHeadline" 38 android:id="@+id/hotseat_edu_heading" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:layout_marginTop="18dp" 42 android:paddingLeft="@dimen/bottom_sheet_edu_padding" 43 android:paddingRight="@dimen/bottom_sheet_edu_padding" 44 android:text="@string/hotseat_edu_title_migrate" 45 android:fontFamily="google-sans" 46 android:textAlignment="center" 47 android:textColor="@android:color/white" 48 android:textSize="20sp" /> 49 50 <TextView 51 android:layout_width="match_parent" 52 android:id="@+id/hotseat_edu_content" 53 android:layout_height="wrap_content" 54 android:layout_marginTop="18dp" 55 android:layout_marginBottom="18dp" 56 android:fontFamily="roboto-medium" 57 android:paddingLeft="@dimen/bottom_sheet_edu_padding" 58 android:paddingRight="@dimen/bottom_sheet_edu_padding" 59 android:text="@string/hotseat_edu_message_migrate" 60 android:textAlignment="center" 61 android:textColor="@android:color/white" 62 android:textSize="16sp" /> 63 64 <LinearLayout 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" 67 android:id="@+id/hotseat_wrapper" 68 android:orientation="vertical"> 69 70 <com.android.launcher3.CellLayout 71 android:id="@+id/sample_prediction" 72 android:layout_width="match_parent" 73 android:layout_height="0dp" 74 launcher:containerType="hotseat" /> 75 76 <LinearLayout 77 android:id="@+id/button_container" 78 android:layout_width="match_parent" 79 android:layout_height="wrap_content" 80 android:paddingLeft="@dimen/bottom_sheet_edu_padding" 81 android:paddingTop="8dp" 82 android:paddingRight="@dimen/bottom_sheet_edu_padding"> 83 84 <FrameLayout 85 android:layout_width="0dp" 86 android:layout_height="wrap_content" 87 android:layout_gravity="center_vertical" 88 android:layout_weight=".4"> 89 <Button 90 android:id="@+id/no_thanks" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content" 93 android:background="?android:attr/selectableItemBackground" 94 android:text="@string/hotseat_edu_dismiss" 95 android:layout_gravity="start|center_vertical" 96 android:textColor="@android:color/white"/> 97 </FrameLayout> 98 <FrameLayout 99 android:layout_width="0dp" 100 android:layout_height="wrap_content" 101 android:layout_gravity="center_vertical" 102 android:layout_weight=".6"> 103 <Button 104 android:id="@+id/turn_predictions_on" 105 android:layout_width="wrap_content" 106 android:layout_height="wrap_content" 107 android:background="?android:attr/selectableItemBackground" 108 android:layout_gravity="end|center_vertical" 109 android:text="@string/hotseat_edu_accept" 110 android:textColor="@android:color/white"/> 111 </FrameLayout> 112 113 </LinearLayout> 114 </LinearLayout> 115 </LinearLayout> 116 117</com.android.launcher3.hybridhotseat.HotseatEduDialog>