| <?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. --> |
| |
| <org.chromium.chrome.browser.toolbar.top.TabSwitcherModeTTPhone |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:id="@+id/tab_switcher_toolbar" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/toolbar_height_no_shadow" |
| android:clickable="true" > |
| |
| <LinearLayout |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:id="@+id/new_tab_view" |
| android:background="?attr/selectableItemBackground" |
| android:orientation="horizontal" |
| android:visibility="gone"> |
| <ImageView |
| android:layout_width="wrap_content" |
| android:layout_height="56dp" |
| android:layout_gravity="start|top" |
| android:scaleType="center" |
| android:paddingStart="16dp" |
| android:paddingEnd="16dp" |
| android:tint="@color/default_icon_color" |
| app:srcCompat="@drawable/new_tab_icon" |
| android:contentDescription="@string/accessibility_toolbar_btn_new_tab"/> |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:paddingEnd="16dp" |
| android:gravity="center_vertical" |
| android:text="@string/button_new_tab" |
| android:textAppearance="@style/TextAppearance.TextMediumThick.Primary" /> |
| </LinearLayout> |
| |
| <org.chromium.chrome.browser.toolbar.NewTabButton |
| android:id="@+id/new_tab_button" |
| style="@style/ToolbarButton" |
| android:layout_width="wrap_content" |
| android:layout_gravity="start|top" |
| android:paddingStart="16dp" |
| android:paddingEnd="16dp" |
| android:contentDescription="@string/accessibility_toolbar_btn_new_tab" /> |
| |
| <ImageView |
| android:id="@+id/logo" |
| android:layout_width="wrap_content" |
| android:layout_height="32dp" |
| android:layout_gravity="center" |
| android:scaleType="centerInside" |
| app:srcCompat="@drawable/google_logo" |
| android:visibility="gone" |
| android:contentDescription="@null"/> |
| |
| <ViewStub |
| android:id="@+id/incognito_tabs_stub" |
| android:inflatedId="@+id/incognito_toggle_tabs" |
| android:layout="@layout/incognito_toggle_tabs" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_gravity="center" |
| android:layout_marginBottom="4dp"/> |
| |
| <LinearLayout |
| android:orientation="horizontal" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_gravity="center|end" > |
| |
| <!-- TODO(crbug.com/912358): Enable touch highlight on this button. --> |
| <org.chromium.chrome.browser.toolbar.top.ToggleTabStackButton |
| android:id="@+id/tab_switcher_mode_tab_switcher_button" |
| style="@style/ToolbarButton" |
| android:background="@android:color/transparent" |
| android:paddingStart="8dp" |
| android:layout_gravity="top" |
| android:contentDescription="@string/accessibility_toolbar_btn_tabswitcher_toggle_default" /> |
| |
| <Switch |
| android:id="@+id/incognito_switch" |
| android:layout_gravity="center" |
| android:layout_height="wrap_content" |
| android:layout_width="wrap_content" |
| android:paddingStart="16dp" |
| android:paddingEnd="16dp" |
| android:thumb="@drawable/incognito_switch" |
| android:track="@drawable/incognito_switch_track" |
| android:visibility="gone"/> |
| |
| <include layout="@layout/menu_button" /> |
| |
| </LinearLayout> |
| |
| </org.chromium.chrome.browser.toolbar.top.TabSwitcherModeTTPhone> |