mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-16 09:08:19 +00:00
- Updated layout files to support landscape mode on phones - Updated All Set page to say "tablet" rather than "phone" on tablets - Hiding feedback view during gestures for better visibility - Renamed files and resources to say "tablet" rather than "foldable" - Added custom layout logic for the mock hotseat on foldables - Updated feedback view margins Test: manual Fixes: 215063763 Fixes: 206895841 Fixes: 219251891 Change-Id: I56f7f33dd0617bdeeca4863f7d5de0143376c8bf
242 lines
12 KiB
XML
242 lines
12 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2021 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="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/top_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="101dp"
|
|
android:background="@color/mock_conversation_top_bar"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="43dp"
|
|
android:layout_marginBottom="22dp"
|
|
android:layout_marginStart="@dimen/gesture_tutorial_top_bar_margin_start"
|
|
android:layout_marginEnd="@dimen/gesture_tutorial_top_bar_margin_end"
|
|
|
|
app:cardElevation="0dp"
|
|
app:cardCornerRadius="4dp"
|
|
app:cardBackgroundColor="@color/mock_conversation_top_bar_item"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="43dp"
|
|
android:layout_marginBottom="22dp"
|
|
android:layout_marginStart="300dp"
|
|
android:layout_marginEnd="16dp"
|
|
|
|
app:cardElevation="0dp"
|
|
app:cardCornerRadius="4dp"
|
|
app:cardBackgroundColor="@color/mock_conversation_top_bar_item"
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/top_bar_button"/>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/top_bar_button"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="43dp"
|
|
android:layout_marginBottom="22dp"
|
|
android:layout_marginStart="300dp"
|
|
android:layout_marginEnd="24dp"
|
|
|
|
app:cardElevation="0dp"
|
|
app:cardCornerRadius="4dp"
|
|
app:cardBackgroundColor="@color/mock_conversation_top_bar_item"
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:background="@color/mock_conversation_background"
|
|
android:paddingBottom="@dimen/gesture_tutorial_conversation_bottom_padding"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/top_bar"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:paddingBottom="@dimen/gesture_tutorial_message_input_margin_top"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@id/message_bar"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/message_1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="112dp"
|
|
android:layout_marginBottom="@dimen/gesture_tutorial_message_large_margin_bottom"
|
|
android:layout_marginStart="124dp"
|
|
android:layout_marginEnd="@dimen/gesture_tutorial_message_padding_end"
|
|
android:visibility="@integer/gesture_tutorial_extra_messages_visibility"
|
|
|
|
app:cardElevation="0dp"
|
|
app:cardCornerRadius="18dp"
|
|
app:cardBackgroundColor="@color/mock_conversation_sent_message"
|
|
app:layout_constraintBottom_toTopOf="@id/reply_icon_1"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/reply_icon_1"
|
|
android:layout_width="@dimen/gesture_tutorial_message_icon_size"
|
|
android:layout_height="@dimen/gesture_tutorial_message_icon_size"
|
|
android:layout_marginBottom="@dimen/gesture_tutorial_message_large_margin_bottom"
|
|
android:layout_marginStart="@dimen/gesture_tutorial_message_padding_start"
|
|
android:visibility="@integer/gesture_tutorial_extra_messages_visibility"
|
|
|
|
app:cardElevation="0dp"
|
|
app:cardCornerRadius="@dimen/gesture_tutorial_message_icon_corner_radius"
|
|
app:cardBackgroundColor="@color/mock_conversation_profile_icon"
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintBottom_toTopOf="@id/message_2"
|
|
app:layout_constraintStart_toStartOf="parent"/>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="0dp"
|
|
android:layout_height="36dp"
|
|
android:layout_marginStart="17dp"
|
|
android:layout_marginEnd="112dp"
|
|
android:visibility="@integer/gesture_tutorial_extra_messages_visibility"
|
|
|
|
app:cardElevation="0dp"
|
|
app:cardCornerRadius="18dp"
|
|
app:cardBackgroundColor="@color/mock_conversation_received_message"
|
|
app:layout_constraintTop_toTopOf="@id/reply_icon_1"
|
|
app:layout_constraintBottom_toBottomOf="@id/reply_icon_1"
|
|
app:layout_constraintStart_toEndOf="@id/reply_icon_1"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/message_2"
|
|
android:layout_width="0dp"
|
|
android:layout_height="36dp"
|
|
android:layout_marginBottom="@dimen/gesture_tutorial_message_small_margin_bottom"
|
|
android:layout_marginStart="280dp"
|
|
android:layout_marginEnd="@dimen/gesture_tutorial_message_padding_end"
|
|
android:visibility="@integer/gesture_tutorial_extra_messages_visibility"
|
|
|
|
app:cardElevation="0dp"
|
|
app:cardCornerRadius="18dp"
|
|
app:cardBackgroundColor="@color/mock_conversation_sent_message"
|
|
app:layout_constraintBottom_toTopOf="@id/message_3"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/message_3"
|
|
android:layout_width="0dp"
|
|
android:layout_height="74dp"
|
|
android:layout_marginBottom="@dimen/gesture_tutorial_message_large_margin_bottom"
|
|
android:layout_marginStart="@dimen/gesture_tutorial_message_margin_start"
|
|
android:layout_marginEnd="@dimen/gesture_tutorial_message_padding_end"
|
|
|
|
app:cardElevation="0dp"
|
|
app:cardCornerRadius="18dp"
|
|
app:cardBackgroundColor="@color/mock_conversation_sent_message"
|
|
app:layout_constraintBottom_toTopOf="@id/reply_icon_2"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/reply_icon_2"
|
|
android:layout_width="@dimen/gesture_tutorial_message_icon_size"
|
|
android:layout_height="@dimen/gesture_tutorial_message_icon_size"
|
|
android:layout_marginBottom="@dimen/gesture_tutorial_message_large_margin_bottom"
|
|
android:layout_marginStart="@dimen/gesture_tutorial_message_padding_start"
|
|
|
|
app:cardElevation="0dp"
|
|
app:cardCornerRadius="@dimen/gesture_tutorial_message_icon_corner_radius"
|
|
app:cardBackgroundColor="@color/mock_conversation_profile_icon"
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintBottom_toTopOf="@id/message_4"
|
|
app:layout_constraintStart_toStartOf="parent"/>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="0dp"
|
|
android:layout_height="36dp"
|
|
android:layout_marginStart="17dp"
|
|
android:layout_marginEnd="@dimen/gesture_tutorial_reply_margin_end"
|
|
|
|
app:cardElevation="0dp"
|
|
app:cardCornerRadius="18dp"
|
|
app:cardBackgroundColor="@color/mock_conversation_received_message"
|
|
app:layout_constraintTop_toTopOf="@id/reply_icon_2"
|
|
app:layout_constraintBottom_toBottomOf="@id/reply_icon_2"
|
|
app:layout_constraintStart_toEndOf="@id/reply_icon_2"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/message_4"
|
|
android:layout_width="0dp"
|
|
android:layout_height="74dp"
|
|
android:layout_marginStart="@dimen/gesture_tutorial_message_margin_start"
|
|
android:layout_marginEnd="@dimen/gesture_tutorial_message_padding_end"
|
|
|
|
app:cardElevation="0dp"
|
|
app:cardCornerRadius="18dp"
|
|
app:cardBackgroundColor="@color/mock_conversation_sent_message"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/message_bar"
|
|
android:layout_width="0dp"
|
|
android:layout_height="44dp"
|
|
android:layout_marginTop="36dp"
|
|
android:layout_marginStart="34dp"
|
|
android:layout_marginEnd="24dp"
|
|
|
|
app:cardElevation="0dp"
|
|
app:cardCornerRadius="164dp"
|
|
app:cardBackgroundColor="@color/mock_conversation_message_input"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |