xref: /aosp_15_r20/frameworks/base/packages/SystemUI/res/layout/activity_rear_display_education_opened.xml (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
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
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="wrap_content"
21              android:layout_height="wrap_content"
22              android:orientation="vertical"
23              android:gravity="center" >
24
25    <androidx.cardview.widget.CardView
26        android:layout_width="wrap_content"
27        android:layout_height="wrap_content"
28        app:cardElevation="0dp"
29        app:cardCornerRadius="28dp"
30        app:cardBackgroundColor="@color/rear_display_overlay_animation_background_color">
31
32        <com.android.systemui.reardisplay.RearDisplayEducationLottieViewWrapper
33            android:id="@+id/rear_display_folded_animation"
34            android:importantForAccessibility="no"
35            android:layout_width="@dimen/rear_display_animation_width_opened"
36            android:layout_height="@dimen/rear_display_animation_height_opened"
37            android:layout_gravity="center"
38            android:contentDescription="@string/rear_display_accessibility_unfolded_animation"
39            android:scaleType="fitXY"
40            app:lottie_rawRes="@raw/rear_display_turnaround"
41            app:lottie_autoPlay="true"
42            app:lottie_repeatMode="reverse"/>
43    </androidx.cardview.widget.CardView>
44
45    <TextView
46        android:id="@+id/rear_display_title_text_view"
47        android:layout_width="wrap_content"
48        android:layout_height="wrap_content"
49        android:text="@string/rear_display_unfolded_bottom_sheet_title"
50        android:textAppearance="@style/TextAppearance.Dialog.Title"
51        android:lineSpacingExtra="2sp"
52        android:paddingTop="@dimen/rear_display_title_top_padding_opened"
53        android:paddingBottom="@dimen/rear_display_title_bottom_padding_opened"
54        android:gravity="center_horizontal|center_vertical"
55    />
56
57    <TextView
58        android:layout_width="wrap_content"
59        android:layout_height="wrap_content"
60        android:text="@string/rear_display_unfolded_bottom_sheet_description"
61        android:textAppearance="@style/TextAppearance.Dialog.Body"
62        android:lineSpacingExtra="2sp"
63        android:translationY="-1.24sp"
64        android:gravity="center_horizontal|top"
65    />
66
67</LinearLayout>
68