mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 10:18:20 +00:00
- Added light mode gesture feedback animations - Added color resources for the fake launcher wallpaper. Also using these color resources in the feedback animations for consistency - Using fake previous app task color in feedback animations for consistency Bug: 169687177 Test: manual Change-Id: I1d28212e02c2ae750ce6241b64aa90f52b827c76
162 lines
6.9 KiB
XML
162 lines
6.9 KiB
XML
<!--
|
|
Copyright (C) 2020 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.
|
|
-->
|
|
<com.android.quickstep.interaction.RootSandboxLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipChildren="false">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/gesture_tutorial_fake_launcher_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/gesture_tutorial_fake_hotseat_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginBottom="70dp"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<com.android.launcher3.views.ClipIconView
|
|
android:id="@+id/gesture_tutorial_fake_icon_view"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:visibility="invisible" />
|
|
|
|
<View
|
|
android:id="@+id/gesture_tutorial_fake_previous_task_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleX="0.98"
|
|
android:scaleY="0.98"
|
|
android:visibility="invisible" />
|
|
|
|
<View
|
|
android:id="@+id/gesture_tutorial_fake_task_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:visibility="visible" />
|
|
|
|
<View
|
|
android:id="@+id/gesture_tutorial_ripple_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/gesture_tutorial_ripple"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/gesture_tutorial_feedback_video"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:scaleType="fitXY"
|
|
android:visibility="gone"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/gesture_tutorial_gesture_video"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:scaleType="fitXY"
|
|
android:visibility="gone"/>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/gesture_tutorial_fragment_feedback_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginStart="@dimen/gesture_tutorial_feedback_margin_start_end"
|
|
android:layout_marginEnd="@dimen/gesture_tutorial_feedback_margin_start_end"
|
|
android:layout_marginTop="24dp"
|
|
android:padding="24dp"
|
|
android:background="@drawable/bg_sandbox_feedback">
|
|
|
|
<TextView
|
|
android:id="@+id/gesture_tutorial_fragment_feedback_title"
|
|
style="@style/TextAppearance.GestureTutorial.Feedback.Title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
<TextView
|
|
android:id="@+id/gesture_tutorial_fragment_feedback_subtitle"
|
|
style="@style/TextAppearance.GestureTutorial.Feedback.Subtitle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_fragment_feedback_title"/>
|
|
|
|
<com.android.quickstep.interaction.TutorialStepIndicator
|
|
android:id="@+id/gesture_tutorial_fragment_feedback_tutorial_step"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/gesture_tutorial_fragment_action_button"
|
|
app:layout_constraintBottom_toBottomOf="@id/gesture_tutorial_fragment_action_button"/>
|
|
|
|
<Button
|
|
android:id="@+id/gesture_tutorial_fragment_action_button"
|
|
style="@style/TextAppearance.GestureTutorial.ButtonLabel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:text="@string/gesture_tutorial_action_button_label_next"
|
|
android:background="@drawable/gesture_tutorial_action_button_background"
|
|
android:stateListAnimator="@null"
|
|
android:visibility="invisible"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/gesture_tutorial_fragment_feedback_subtitle"/>
|
|
|
|
<Button
|
|
style="@style/TextAppearance.GestureTutorial.Feedback.Subtext"
|
|
android:id="@+id/gesture_tutorial_fragment_close_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/gesture_tutorial_action_button_label_skip"
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/gesture_tutorial_fragment_action_button"
|
|
app:layout_constraintBottom_toBottomOf="@id/gesture_tutorial_fragment_action_button"
|
|
app:layout_constraintStart_toStartOf="@id/gesture_tutorial_fragment_action_button"
|
|
app:layout_constraintEnd_toEndOf="@id/gesture_tutorial_fragment_action_button"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</com.android.quickstep.interaction.RootSandboxLayout> |