[go: up one dir, main page]

blob: 2aa08fbe887b9264bb490e0fb6c0f7b786fb3510 [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">
<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" >
<ImageButton
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:alpha="0"
android:contentDescription="@string/accessibility_toolbar_btn_site_info"
android:scaleType="center"
android:visibility="gone" />
<FrameLayout
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="16dp"
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" />
</FrameLayout>
</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"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:progressDrawable="@drawable/progress_bar"
android:layout_width="match_parent"
android:layout_height="2dp"
android:progress="0" />
</org.chromium.chrome.browser.toolbar.CustomTabToolbar>