From 519885da4342f5aee74dd5b06ee3ed657d3aca73 Mon Sep 17 00:00:00 2001 From: mcarare Date: Wed, 18 Nov 2020 15:52:16 +0200 Subject: [PATCH] For #15788: Remove nested constraint layout in tabs tray. --- .../main/res/layout/component_tabstray.xml | 183 +++++++++--------- .../res/layout/tabstray_multiselect_items.xml | 14 +- 2 files changed, 98 insertions(+), 99 deletions(-) diff --git a/app/src/main/res/layout/component_tabstray.xml b/app/src/main/res/layout/component_tabstray.xml index 20aff53f05..be2e438deb 100644 --- a/app/src/main/res/layout/component_tabstray.xml +++ b/app/src/main/res/layout/component_tabstray.xml @@ -47,105 +47,104 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/infoBanner" /> - - - - - + + + + + + + + + + - - - - + + - - - - - - - - - - - + android:layout_height="match_parent" + android:contentDescription="@string/tabs_header_private_tabs_title" + android:icon="@drawable/ic_private_browsing" /> + + + + + + @@ -29,9 +29,9 @@ android:background="?android:attr/selectableItemBackgroundBorderless" android:contentDescription="@string/tab_tray_multiselect_share_content_description" android:visibility="gone" - app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintBottom_toBottomOf="@id/topBar" app:layout_constraintEnd_toStartOf="@id/menu_multi_select" - app:layout_constraintTop_toTopOf="parent" + app:layout_constraintTop_toTopOf="@id/topBar" app:srcCompat="@drawable/ic_share_filled" app:tint="@color/contrast_text_normal_theme" /> @@ -42,9 +42,9 @@ android:background="?android:attr/selectableItemBackgroundBorderless" android:contentDescription="@string/tab_tray_multiselect_menu_content_description" android:visibility="gone" - app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="@id/topBar" + app:layout_constraintEnd_toEndOf="@id/topBar" + app:layout_constraintTop_toTopOf="@id/topBar" app:srcCompat="@drawable/ic_menu" app:tint="@color/contrast_text_normal_theme" />