1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2015 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!-- The toolbar containing the URL bar, back button, and NTP button.
-->
<org.chromium.chrome.browser.toolbar.top.ToolbarPhone
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_height_no_shadow" >
<org.chromium.chrome.browser.toolbar.home_button.HomeButton
android:id="@+id/home_button"
style="@style/ToolbarHoverableButton"
android:src="@drawable/btn_toolbar_home"
android:contentDescription="@string/accessibility_toolbar_btn_home"
android:tooltipText="@string/accessibility_toolbar_btn_home"
android:visibility="gone"
app:menuVerticalOverlapAnchor="false"
app:menuMaxWidth="@dimen/home_button_list_menu_width"
app:menuPositionedAtStart="true"
app:tint="@color/default_icon_color_tint_list" />
<ViewStub
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:id="@+id/home_page_buttons_stub"
android:layout="@layout/home_page_buttons_layout"
android:visibility="gone" />
<org.chromium.chrome.browser.omnibox.LocationBarPhone
android:id="@+id/location_bar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="top"
android:paddingStart="@dimen/location_bar_start_padding"
android:paddingEnd="@dimen/location_bar_end_padding"/>
<LinearLayout android:id="@+id/toolbar_buttons"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|end"
android:focusable="false"
android:focusableInTouchMode="false">
<ViewStub
android:id="@+id/optional_button_stub"
android:inflatedId="@+id/optional_toolbar_button_container"
android:layout_gravity="top"
android:visibility="gone"
android:layout_width="52dp"
style="@style/ToolbarHoverableButton" />
<org.chromium.chrome.browser.toolbar.top.ToggleTabStackButton
android:id="@+id/tab_switcher_button"
style="@style/ToolbarHoverableButton"
android:layout_gravity="top"
android:clickable="false"
app:menuMaxWidth="@dimen/tab_switcher_menu_width"
app:menuVerticalOverlapAnchor="false" />
<include layout="@layout/menu_button"/>
</LinearLayout>
</org.chromium.chrome.browser.toolbar.top.ToolbarPhone>
|