tab_preview.xml (2869B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public 3 - License, v. 2.0. If a copy of the MPL was not distributed with this 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 5 <merge xmlns:android="http://schemas.android.com/apk/res/android" 6 xmlns:app="http://schemas.android.com/apk/res-auto"> 7 8 <mozilla.components.browser.tabstray.thumbnail.TabThumbnailView 9 android:id="@+id/previewThumbnail" 10 android:layout_width="match_parent" 11 android:layout_height="match_parent" 12 android:background="?layer2" /> 13 14 <androidx.compose.ui.platform.ComposeView 15 android:id="@+id/composableTopToolbar" 16 android:layout_width="match_parent" 17 android:layout_height="wrap_content" 18 android:layout_gravity="top" 19 android:elevation="5dp" 20 android:foregroundGravity="top" 21 android:visibility="gone" /> 22 23 <androidx.compose.ui.platform.ComposeView 24 android:id="@+id/composableBottomToolbar" 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:layout_gravity="bottom" 28 android:elevation="5dp" 29 android:foregroundGravity="bottom" 30 android:visibility="gone" /> 31 32 <LinearLayout 33 android:id="@+id/fakeToolbar" 34 android:layout_width="match_parent" 35 android:layout_height="@dimen/browser_toolbar_height" 36 android:layout_gravity="bottom" 37 android:background="?bottomBarBackground" 38 android:elevation="5dp" 39 android:foregroundGravity="bottom" 40 android:orientation="horizontal" 41 android:visibility="gone" 42 > 43 44 <View 45 android:id="@+id/toolbar_wrapper" 46 android:layout_width="0dp" 47 android:layout_height="40dp" 48 android:layout_gravity="center" 49 android:layout_marginStart="8dp" 50 android:layout_marginEnd="0dp" 51 android:layout_weight="1" 52 android:background="@drawable/search_url_background" /> 53 54 <mozilla.components.ui.tabcounter.TabCounterView 55 android:id="@+id/tab_button" 56 android:layout_width="48dp" 57 android:layout_height="48dp" 58 android:layout_gravity="center" 59 android:layout_marginEnd="6dp" 60 /> 61 62 <androidx.appcompat.widget.AppCompatImageView 63 android:id="@+id/menuButton" 64 android:layout_width="36dp" 65 android:layout_height="48dp" 66 android:layout_gravity="center_vertical" 67 android:paddingVertical="12dp" 68 android:paddingHorizontal="4dp" 69 android:layout_marginEnd="6dp" 70 app:srcCompat="@drawable/mozac_ic_ellipsis_vertical_24" 71 app:tint="?attr/textPrimary" 72 /> 73 </LinearLayout> 74 </merge>