blob: ae41340f99697eb9fcd0e3df259c8c01471ffce0 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015 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. -->
<org.chromium.chrome.browser.toolbar.CustomTabToolbar
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:chrome="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/custom_tabs_control_container_height" >
<ImageButton
android:id="@+id/close_button"
style="@style/ToolbarButton"
android:layout_gravity="start|center_vertical"
android:contentDescription="@string/close_tab" />
<FrameLayout
android:id="@+id/location_bar_frame_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical" >
<org.chromium.chrome.browser.widget.TintedImageButton
android:id="@+id/security_button"
style="@style/LocationBarButton"
android:layout_width="@dimen/location_bar_icon_width"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:contentDescription="@string/accessibility_toolbar_btn_site_info"
android:scaleType="center"
android:visibility="invisible" />
<view
class="org.chromium.chrome.browser.toolbar.CustomTabToolbar$InterceptTouchLayout"
android:id="@+id/title_url_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@null" >
<TextView
android:id="@+id/title_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginBottom="@dimen/custom_tabs_toolbar_vertical_padding"
android:background="@null"
android:ellipsize="end"
android:inputType="none"
android:maxLines="1"
android:paddingEnd="@dimen/toolbar_edge_padding"
android:textSize="@dimen/custom_tabs_title_text_size"
android:visibility="gone" />
<org.chromium.chrome.browser.omnibox.UrlBar
android:id="@+id/url_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@null"
android:inputType="none"
android:singleLine="true"
android:paddingEnd="@dimen/toolbar_edge_padding"
android:textSize="@dimen/location_bar_url_text_size" />
</view>
</FrameLayout>
<ImageButton
android:id="@+id/action_button"
style="@style/ToolbarButton"
android:layout_width="wrap_content"
android:maxWidth="@dimen/custom_tabs_toolbar_maxWidth"
android:paddingTop="@dimen/custom_tabs_toolbar_vertical_padding"
android:paddingBottom="@dimen/custom_tabs_toolbar_vertical_padding"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:layout_marginEnd="42dp"
android:layout_gravity="center_vertical|end"
android:visibility="gone"
android:contentDescription="@null" />
<org.chromium.chrome.browser.widget.TintedImageButton
android:id="@+id/menu_button"
style="@style/ToolbarButton"
android:layout_gravity="center_vertical|end"
android:layout_width="42dp"
android:paddingEnd="4dp"
android:src="@drawable/btn_menu"
android:contentDescription="@string/accessibility_toolbar_btn_menu"
android:background="@null" />
<org.chromium.chrome.browser.widget.ToolbarProgressBar
android:id="@+id/progress"
android:layout_width="match_parent"
android:layout_height="2dp"
chrome:progressBarColor="@color/progress_bar_foreground"
chrome:backgroundColor="@color/progress_bar_background" />
</org.chromium.chrome.browser.toolbar.CustomTabToolbar>