1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. -->
6 <org.chromium.chrome.browser.toolbar.CustomTabToolbar
7 xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:chrome="http://schemas.android.com/apk/res-auto" >
10 android:id="@+id/close_button"
11 style="@style/ToolbarButton"
12 android:layout_gravity="start|center_vertical"
13 android:contentDescription="@string/close_tab" />
15 android:id="@+id/location_bar_frame_layout"
16 android:layout_width="match_parent"
17 android:layout_height="wrap_content"
18 android:layout_gravity="center_vertical" >
20 android:id="@+id/security_button"
21 style="@style/LocationBarButton"
22 android:layout_width="@dimen/location_bar_icon_width"
23 android:layout_height="match_parent"
24 android:layout_gravity="center_vertical"
25 android:contentDescription="@string/accessibility_toolbar_btn_site_info"
26 android:scaleType="center"
27 android:visibility="gone" />
29 android:id="@+id/title_url_container"
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 android:layout_gravity="center_vertical"
33 android:background="@null" >
35 android:id="@+id/title_bar"
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
38 android:layout_gravity="top"
39 android:layout_marginBottom="16dp"
40 android:background="@null"
41 android:ellipsize="end"
42 android:inputType="none"
44 android:paddingEnd="@dimen/toolbar_edge_padding"
45 android:textSize="@dimen/custom_tabs_title_text_size"
46 android:visibility="gone" />
47 <org.chromium.chrome.browser.omnibox.UrlBar
48 android:id="@+id/url_bar"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
51 android:layout_gravity="bottom"
52 android:background="@null"
53 android:inputType="none"
54 android:singleLine="true"
55 android:paddingEnd="@dimen/toolbar_edge_padding"
56 android:textSize="@dimen/location_bar_url_text_size" />
60 android:id="@+id/action_button"
61 style="@style/ToolbarButton"
62 android:layout_width="wrap_content"
63 android:maxWidth="@dimen/custom_tabs_toolbar_maxWidth"
64 android:paddingTop="@dimen/custom_tabs_toolbar_vertical_padding"
65 android:paddingBottom="@dimen/custom_tabs_toolbar_vertical_padding"
66 android:adjustViewBounds="true"
67 android:scaleType="centerInside"
68 android:layout_marginEnd="42dp"
69 android:layout_gravity="center_vertical|end"
70 android:visibility="gone"
71 android:contentDescription="@null" />
72 <org.chromium.chrome.browser.widget.TintedImageButton
73 android:id="@+id/menu_button"
74 style="@style/ToolbarButton"
75 android:layout_gravity="center_vertical|end"
76 android:layout_width="42dp"
77 android:paddingEnd="4dp"
78 android:src="@drawable/btn_menu"
79 android:contentDescription="@string/accessibility_toolbar_btn_menu"
80 android:background="@null" />
81 <org.chromium.chrome.browser.widget.ToolbarProgressBar
82 android:id="@+id/progress"
83 android:layout_width="match_parent"
84 android:layout_height="2dp"
85 chrome:progressBarColor="@color/progress_bar_foreground"
86 chrome:backgroundColor="@color/progress_bar_background" />
87 </org.chromium.chrome.browser.toolbar.CustomTabToolbar>