1<?xml version="1.0" encoding="utf-8"?> 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 xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content"> 21 22 <TextView 23 android:id="@+id/title" 24 style="@style/TextAppearance.TaskbarEduTooltip.Title" 25 android:layout_width="0dp" 26 android:layout_height="wrap_content" 27 android:paddingBottom="@dimen/taskbar_edu_tooltip_vertical_margin" 28 android:text="@string/taskbar_edu_features" 29 30 app:layout_constraintEnd_toEndOf="parent" 31 app:layout_constraintStart_toStartOf="parent" 32 app:layout_constraintTop_toTopOf="parent" 33 app:layout_constraintBottom_toTopOf="@id/splitscreen_animation"/> 34 35 <com.airbnb.lottie.LottieAnimationView 36 android:id="@+id/splitscreen_animation" 37 android:layout_width="@dimen/taskbar_edu_features_lottie_width" 38 android:layout_height="@dimen/taskbar_edu_features_lottie_height" 39 40 app:lottie_autoPlay="true" 41 app:lottie_loop="true" 42 43 app:layout_constraintEnd_toEndOf="@id/splitscreen_text" 44 app:layout_constraintStart_toStartOf="@id/splitscreen_text" 45 app:layout_constraintTop_toBottomOf="@id/title" /> 46 47 <TextView 48 android:id="@+id/splitscreen_text" 49 style="@style/TextAppearance.TaskbarEduTooltip.Subtext" 50 android:layout_width="0dp" 51 android:layout_height="wrap_content" 52 android:text="@string/taskbar_edu_splitscreen" 53 54 app:layout_constraintEnd_toStartOf="@id/pinning_text" 55 app:layout_constraintStart_toStartOf="parent" 56 app:layout_constraintTop_toBottomOf="@id/splitscreen_animation" /> 57 58 <androidx.constraintlayout.widget.Group 59 android:id="@+id/pinning_edu" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 app:constraint_referenced_ids="pinning_animation,pinning_text" /> 63 64 <com.airbnb.lottie.LottieAnimationView 65 android:id="@+id/pinning_animation" 66 android:layout_width="@dimen/taskbar_edu_features_lottie_width" 67 android:layout_height="@dimen/taskbar_edu_features_lottie_height" 68 69 app:lottie_autoPlay="true" 70 app:lottie_loop="true" 71 app:lottie_rawRes="@raw/taskbar_edu_pinning" 72 73 app:layout_constraintEnd_toEndOf="@id/pinning_text" 74 app:layout_constraintStart_toStartOf="@id/pinning_text" 75 app:layout_constraintTop_toBottomOf="@id/title" /> 76 77 <TextView 78 android:id="@+id/pinning_text" 79 style="@style/TextAppearance.TaskbarEduTooltip.Subtext" 80 android:layout_width="0dp" 81 android:layout_height="wrap_content" 82 android:text="@string/taskbar_edu_pinning" 83 android:layout_marginStart="@dimen/taskbar_edu_features_horizontal_spacing" 84 85 app:layout_constraintStart_toEndOf="@id/splitscreen_text" 86 app:layout_constraintEnd_toStartOf="@id/suggestions_text" 87 app:layout_constraintTop_toBottomOf="@id/pinning_animation" /> 88 89 <com.airbnb.lottie.LottieAnimationView 90 android:id="@+id/suggestions_animation" 91 android:layout_width="@dimen/taskbar_edu_features_lottie_width" 92 android:layout_height="@dimen/taskbar_edu_features_lottie_height" 93 94 app:lottie_autoPlay="true" 95 app:lottie_loop="true" 96 97 app:layout_constraintEnd_toEndOf="@id/suggestions_text" 98 app:layout_constraintStart_toStartOf="@id/suggestions_text" 99 app:layout_constraintTop_toBottomOf="@id/title" /> 100 101 <TextView 102 android:id="@+id/suggestions_text" 103 style="@style/TextAppearance.TaskbarEduTooltip.Subtext" 104 android:layout_width="0dp" 105 android:layout_height="wrap_content" 106 android:text="@string/taskbar_edu_suggestions" 107 android:layout_marginStart="@dimen/taskbar_edu_features_horizontal_spacing" 108 109 app:layout_constraintEnd_toEndOf="parent" 110 app:layout_constraintStart_toEndOf="@id/pinning_text" 111 app:layout_constraintTop_toBottomOf="@id/suggestions_animation" /> 112 113 <androidx.constraintlayout.widget.Barrier 114 android:id="@+id/edu_barrier_bottom" 115 android:layout_width="wrap_content" 116 android:layout_height="wrap_content" 117 app:barrierDirection="bottom" 118 app:constraint_referenced_ids="splitscreen_text,pinning_text,suggestions_text" /> 119 120 <Button 121 android:id="@+id/done_button" 122 style="@style/TaskbarEdu.Button.Done" 123 android:layout_width="wrap_content" 124 android:layout_height="wrap_content" 125 android:layout_marginTop="20dp" 126 android:paddingVertical="12dp" 127 android:text="@string/taskbar_edu_done" 128 android:textColor="?androidprv:attr/textColorOnAccent" 129 130 app:layout_constraintBottom_toBottomOf="parent" 131 app:layout_constraintEnd_toEndOf="parent" 132 app:layout_constraintTop_toBottomOf="@id/edu_barrier_bottom" /> 133</androidx.constraintlayout.widget.ConstraintLayout>