1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2024 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 18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:orientation="vertical" 23 android:gravity="center" 24 android:paddingStart="@dimen/dialog_side_padding" 25 android:paddingEnd="@dimen/dialog_side_padding" 26 android:paddingTop="@dimen/dialog_top_padding" 27 android:paddingBottom="@dimen/dialog_bottom_padding"> 28 29 <androidx.cardview.widget.CardView 30 android:layout_width="wrap_content" 31 android:layout_height="wrap_content" 32 app:cardElevation="0dp" 33 app:cardCornerRadius="28dp" 34 app:cardBackgroundColor="@color/rear_display_overlay_animation_background_color"> 35 36 <com.android.systemui.reardisplay.RearDisplayEducationLottieViewWrapper 37 android:id="@+id/rear_display_folded_animation" 38 android:importantForAccessibility="no" 39 android:layout_width="@dimen/rear_display_animation_width_opened" 40 android:layout_height="@dimen/rear_display_animation_height_opened" 41 android:layout_gravity="center" 42 android:contentDescription="@string/rear_display_accessibility_unfolded_animation" 43 android:scaleType="fitXY" 44 app:lottie_rawRes="@raw/rear_display_turnaround" 45 app:lottie_autoPlay="true" 46 app:lottie_repeatMode="reverse"/> 47 </androidx.cardview.widget.CardView> 48 49 <TextView 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:text="@string/rear_display_unfolded_front_screen_on" 53 android:textAppearance="@style/TextAppearance.Dialog.Title" 54 android:lineSpacingExtra="2sp" 55 android:translationY="-1.24sp" 56 android:gravity="center_horizontal" /> 57 58 <!-- Buttons --> 59 <LinearLayout 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:orientation="horizontal" 63 android:layout_marginTop="36dp"> 64 <Space 65 android:layout_width="0dp" 66 android:layout_height="match_parent" 67 android:layout_weight="1"/> 68 <TextView 69 android:id="@+id/button_cancel" 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:layout_weight="0" 73 android:layout_gravity="start" 74 android:text="@string/cancel" 75 style="@style/Widget.Dialog.Button.BorderButton" /> 76 </LinearLayout> 77 78</LinearLayout> 79