blob: b84c2b5ee3b4fbf439e9be0f521fcb144787b983 [file]
<?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.contextual_suggestions.ToolbarView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="@dimen/bottom_sheet_peek_height"
android:orientation="horizontal"
android:gravity="center_vertical"
android:background="@color/modern_primary_color" >
<!-- Use 48dp width and 16dp end/start padding to produce a 16dp, centered icon. -->
<ImageView
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:src="@drawable/ic_logo_googleg_24dp"
android:scaleType="center"
android:paddingStart="16dp"
android:paddingEnd="16dp"
tools:ignore="ContentDescription" />
<TextView
android:id="@+id/title"
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="1"
android:singleLine="true"
android:ellipsize="end"
android:textAppearance="@style/TextAppearance.BlackTitle1"
android:focusable="true"
android:focusableInTouchMode="true" />
<org.chromium.chrome.browser.widget.ListMenuButton
android:id="@+id/more"
android:layout_width="@dimen/contextual_suggestions_toolbar_icon_size"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackground"
android:src="@drawable/ic_more_vert_black_24dp"
app:tint="@color/standard_mode_tint"
tools:ignore="ContentDescription" />
<org.chromium.ui.widget.ChromeImageButton
android:id="@+id/close_button"
android:layout_height="match_parent"
android:layout_width="@dimen/contextual_suggestions_toolbar_icon_size"
android:background="?attr/selectableItemBackground"
android:src="@drawable/btn_close"
android:scaleType="center"
android:contentDescription="@string/contextual_suggestions_close_button_description"
app:tint="@color/standard_mode_tint" />
</LinearLayout>
<ImageView
android:id="@+id/shadow"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbar_shadow_height"
android:layout_marginTop="@dimen/bottom_sheet_peek_height"
android:src="@drawable/modern_toolbar_shadow"
android:scaleType="fitXY"
tools:ignore="ContentDescription"
android:visibility="gone" />
</org.chromium.chrome.browser.contextual_suggestions.ToolbarView>