mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 18:28:20 +00:00
Use Views in layouts for the gesture navigation tutorial instead of CardViews. We only migrate the classes that will end up being used in the redesigned gesture tutorial. Fix: 268259319 Test: Manual Change-Id: I510c8b3f840d0267dd6dfca573cc69c4996d525c
76 lines
3.2 KiB
XML
76 lines
3.2 KiB
XML
<?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.
|
|
-->
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
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="match_parent"
|
|
android:paddingTop="26dp"
|
|
android:paddingBottom="26dp"
|
|
android:paddingStart="56dp"
|
|
android:paddingEnd="56dp">
|
|
|
|
<View
|
|
android:id="@+id/hotseat_icon_1"
|
|
android:layout_width="@dimen/gesture_tutorial_hotseat_icon_size"
|
|
android:layout_height="@dimen/gesture_tutorial_hotseat_icon_size"
|
|
android:background="@drawable/hotseat_icon"
|
|
android:clipToOutline="true"
|
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintVertical_chainStyle="spread_inside"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@id/hotseat_icon_2"
|
|
app:layout_constraintStart_toStartOf="parent"/>
|
|
|
|
<View
|
|
android:id="@+id/hotseat_icon_2"
|
|
android:layout_width="@dimen/gesture_tutorial_hotseat_icon_size"
|
|
android:layout_height="@dimen/gesture_tutorial_hotseat_icon_size"
|
|
android:background="@drawable/hotseat_icon"
|
|
android:clipToOutline="true"
|
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintTop_toBottomOf="@id/hotseat_icon_1"
|
|
app:layout_constraintBottom_toTopOf="@id/hotseat_icon_3"
|
|
app:layout_constraintStart_toStartOf="parent"/>
|
|
|
|
<View
|
|
android:id="@+id/hotseat_icon_3"
|
|
android:layout_width="@dimen/gesture_tutorial_hotseat_icon_size"
|
|
android:layout_height="@dimen/gesture_tutorial_hotseat_icon_size"
|
|
android:background="@drawable/hotseat_icon"
|
|
android:clipToOutline="true"
|
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintTop_toBottomOf="@id/hotseat_icon_2"
|
|
app:layout_constraintBottom_toTopOf="@id/hotseat_icon_4"
|
|
app:layout_constraintStart_toStartOf="parent"/>
|
|
|
|
<View
|
|
android:id="@+id/hotseat_icon_4"
|
|
android:layout_width="@dimen/gesture_tutorial_hotseat_icon_size"
|
|
android:layout_height="@dimen/gesture_tutorial_hotseat_icon_size"
|
|
android:background="@drawable/hotseat_icon"
|
|
android:clipToOutline="true"
|
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintTop_toBottomOf="@id/hotseat_icon_3"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |