blob: 86c535d2c89ecf349b5eb793015aa58d409a2311 [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"
android:id="@+id/bottom_toolbar_browsing"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/toolbar_background_primary"
android:layout_gravity="top|center_horizontal"
android:paddingStart="@dimen/bottom_toolbar_padding"
android:paddingEnd="@dimen/bottom_toolbar_padding" >
<LinearLayout
android:id="@+id/home_button_wrapper"
style="@style/BottomToolbarButtonWrapper" >
<org.chromium.chrome.browser.toolbar.HomeButton
android:id="@+id/home_button"
app:tint="@color/standard_mode_tint"
style="@style/BottomToolbarButton"
android:contentDescription="@string/accessibility_toolbar_btn_home" />
<TextView
android:id="@+id/home_button_label"
style="@style/BottomToolbarLabel"
android:text="@string/accessibility_toolbar_btn_home" />
</LinearLayout>
<include layout="@layout/toolbar_space" />
<LinearLayout
android:id="@+id/share_button_wrapper"
style="@style/BottomToolbarButtonWrapper">
<org.chromium.chrome.browser.toolbar.bottom.ShareButton
android:id="@+id/share_button"
android:src="@drawable/ic_share_white_24dp"
app:tint="@color/standard_mode_tint"
style="@style/BottomToolbarButton"
android:contentDescription="@string/share" />
<TextView
android:id="@+id/share_button_label"
style="@style/BottomToolbarLabel"
android:text="@string/share" />
</LinearLayout>
<include layout="@layout/toolbar_space" />
<LinearLayout
android:layout_width="72dp"
android:layout_height="wrap_content"
android:paddingStart="4dp"
android:paddingEnd="4dp"
android:orientation="vertical"
android:id="@+id/search_accelerator_wrapper"
android:background="?attr/selectableItemBackground"
android:layout_gravity="top"
android:layout_marginTop="6dp" >
<org.chromium.chrome.browser.toolbar.bottom.SearchAccelerator
android:id="@+id/search_accelerator"
android:layout_width="@dimen/search_accelerator_width"
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:src="@drawable/ic_search"
android:clickable="false"
android:contentDescription="@string/accessibility_toolbar_btn_search_accelerator" />
<TextView
android:id="@+id/search_accelerator_label"
style="@style/BottomToolbarLabel"
android:paddingTop="0dp"
android:text="@string/accessibility_toolbar_btn_search_accelerator" />
</LinearLayout>
<include layout="@layout/toolbar_space" />
<LinearLayout
android:id="@+id/tab_switcher_button_wrapper"
style="@style/BottomToolbarButtonWrapper" >
<org.chromium.chrome.browser.toolbar.TabSwitcherButtonView
android:id="@+id/tab_switcher_button"
style="@style/BottomToolbarButton"
android:contentDescription="@string/accessibility_toolbar_btn_tabswitcher_toggle_default" />
<TextView
android:id="@+id/tab_switcher_button_label"
style="@style/BottomToolbarLabel"
android:text="@string/tab_switcher_button_label" />
</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>