| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ~ Copyright (C) 2022 The Android Open Source Project |
| ~ |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| ~ you may not use this file except in compliance with the License. |
| ~ You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:gravity="center" > |
| |
| <androidx.cardview.widget.CardView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| app:cardElevation="0dp" |
| app:cardCornerRadius="28dp" |
| app:cardBackgroundColor="@color/rear_display_overlay_animation_background_color"> |
| |
| <com.android.systemui.reardisplay.RearDisplayEducationLottieViewWrapper |
| android:id="@+id/rear_display_folded_animation" |
| android:importantForAccessibility="no" |
| android:layout_width="@dimen/rear_display_animation_width" |
| android:layout_height="@dimen/rear_display_animation_height" |
| android:layout_gravity="center" |
| android:contentDescription="@string/rear_display_accessibility_folded_animation" |
| android:scaleType="fitXY" |
| app:lottie_rawRes="@raw/rear_display_folded" |
| app:lottie_autoPlay="true" |
| app:lottie_repeatMode="reverse"/> |
| </androidx.cardview.widget.CardView> |
| |
| <TextView |
| android:id="@+id/rear_display_title_text_view" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/rear_display_folded_bottom_sheet_title" |
| android:textAppearance="@style/TextAppearance.Dialog.Title" |
| android:lineSpacingExtra="2sp" |
| android:paddingTop="@dimen/rear_display_title_top_padding" |
| android:paddingBottom="@dimen/rear_display_title_bottom_padding" |
| android:gravity="center_horizontal|center_vertical" |
| /> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/rear_display_folded_bottom_sheet_description" |
| android:textAppearance="@style/TextAppearance.Dialog.Body" |
| android:lineSpacingExtra="2sp" |
| android:translationY="-1.24sp" |
| android:gravity="center_horizontal|top" |
| /> |
| </LinearLayout> |