• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:paddingBottom="@dimen/rear_display_title_bottom_padding"
56        android:gravity="center_horizontal" />
57
58    <TextView
59        android:id="@+id/seekbar_instructions"
60        android:layout_width="wrap_content"
61        android:layout_height="wrap_content"
62        android:text="@string/rear_display_unfolded_front_screen_on_slide_to_cancel"
63        android:textAppearance="@style/TextAppearance.Dialog.Body"
64        android:lineSpacingExtra="2sp"
65        android:paddingBottom="@dimen/rear_display_title_bottom_padding"
66        android:gravity="center_horizontal" />
67
68    <SeekBar
69        android:id="@+id/seekbar"
70        android:layout_width="@dimen/rear_display_animation_width_opened"
71        android:layout_height="wrap_content"
72        android:progressDrawable="@drawable/rear_display_dialog_seekbar"
73        android:thumb="@null"
74        android:background="@null"
75        android:gravity="center_horizontal" />
76
77    <Button
78        android:id="@+id/cancel_button"
79        android:text="@string/cancel"
80        android:layout_width="@dimen/rear_display_animation_width_opened"
81        android:layout_height="wrap_content"
82        android:gravity="center_horizontal"
83        android:visibility="gone"
84        style="@style/Widget.Dialog.Button.BorderButton"/>
85
86</LinearLayout>
87