blob: fd86594cc01c5968e8f021f53e413c1e2262f8b5 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/bottom_toolbar_tab_switcher"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
android:clickable="true" >
<FrameLayout
android:id="@+id/bottom_toolbar_buttons"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/modern_primary_color" >
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="@dimen/bottom_toolbar_padding"
android:paddingEnd="@dimen/bottom_toolbar_padding" >
<org.chromium.chrome.browser.toolbar.bottom.CloseAllTabsButton
android:id="@+id/close_all_tabs_button"
style="@style/BottomToolbarButtonWrapper"
android:src="@drawable/ic_close_all_tabs"
android:contentDescription="@string/accessibility_toolbar_btn_close_all_tabs"
app:tint="@color/standard_mode_tint" />
<include layout="@layout/toolbar_space" />
<LinearLayout
android:layout_width="72dp"
android:layout_height="wrap_content"
android:orientation="vertical"
android:id="@+id/new_tab_button_wrapper"
android:background="?attr/selectableItemBackground"
android:layout_gravity="top"
android:layout_marginTop="6dp" >
<org.chromium.chrome.browser.toolbar.bottom.BottomToolbarNewTabButton
android:id="@+id/tab_switcher_new_tab_button"
android:layout_width="@dimen/search_accelerator_height"
android:layout_height="@dimen/search_accelerator_height"
android:layout_gravity="center"
android:paddingTop="@dimen/search_accelerator_height_padding"
android:paddingBottom="@dimen/search_accelerator_height_padding"
android:clickable="false"
android:contentDescription="@string/accessibility_toolbar_btn_new_tab" />
<TextView
android:id="@+id/new_tab_button_label"
style="@style/BottomToolbarLabel"
android:paddingTop="0dp"
android:text="@string/accessibility_toolbar_btn_new_tab" />
</LinearLayout>
<include layout="@layout/toolbar_space" />
<LinearLayout
android:id="@+id/labeled_menu_button_wrapper"
style="@style/BottomToolbarButtonWrapper" >
<include layout="@layout/bottom_toolbar_menu_button"
style="@style/BottomToolbarButton" />
<TextView
android:id="@+id/menu_button_label"
style="@style/BottomToolbarLabel"
android:text="@string/more" />
</LinearLayout>
</LinearLayout>
</FrameLayout>
<ImageView
android:id="@+id/bottom_toolbar_bottom_shadow"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_shadow_height"
android:src="@drawable/modern_toolbar_shadow"
android:scaleType="fitXY"
android:visibility="gone"
tools:ignore="ContentDescription" />
</LinearLayout>