1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2022 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:layout_width="wrap_content" 20 android:layout_height="wrap_content" 21 android:orientation="vertical" 22 android:gravity="center" > 23 24 <androidx.cardview.widget.CardView 25 android:layout_width="wrap_content" 26 android:layout_height="wrap_content" 27 app:cardElevation="0dp" 28 app:cardCornerRadius="28dp" 29 app:cardBackgroundColor="@color/rear_display_overlay_animation_background_color"> 30 31 <com.android.systemui.reardisplay.RearDisplayEducationLottieViewWrapper 32 android:id="@+id/rear_display_folded_animation" 33 android:importantForAccessibility="no" 34 android:layout_width="@dimen/rear_display_animation_width" 35 android:layout_height="@dimen/rear_display_animation_height" 36 android:layout_gravity="center" 37 android:contentDescription="@string/rear_display_accessibility_folded_animation" 38 android:scaleType="fitXY" 39 app:lottie_rawRes="@raw/rear_display_folded" 40 app:lottie_autoPlay="true" 41 app:lottie_repeatMode="reverse"/> 42 </androidx.cardview.widget.CardView> 43 44 <TextView 45 android:id="@+id/rear_display_title_text_view" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:text="@string/rear_display_folded_bottom_sheet_title" 49 android:textAppearance="@style/TextAppearance.Dialog.Title" 50 android:lineSpacingExtra="2sp" 51 android:paddingTop="@dimen/rear_display_title_top_padding" 52 android:paddingBottom="@dimen/rear_display_title_bottom_padding" 53 android:gravity="center_horizontal|center_vertical" 54 /> 55 56 <TextView 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:text="@string/rear_display_folded_bottom_sheet_description" 60 android:textAppearance="@style/TextAppearance.Dialog.Body" 61 android:lineSpacingExtra="2sp" 62 android:translationY="-1.24sp" 63 android:gravity="center_horizontal|top" 64 /> 65</LinearLayout> 66