<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2021 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/contextual_search_promo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="8dp"
android:paddingBottom="16dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:visibility="invisible">
<org.chromium.components.browser_ui.widget.MaterialCardViewNoShadow
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/MaterialCardStyle">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<org.chromium.components.browser_ui.widget.text.TextViewWithCompoundDrawables
android:id="@+id/contextual_search_promo_title"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:bufferType="spannable"
android:drawableStart="@drawable/btn_info"
app:drawableWidth="24dp"
app:drawableHeight="24dp"
app:chromeDrawableTint="@macro/default_icon_color_accent1"
android:tintMode="src_in"
android:drawablePadding="8dp"
android:text="@string/contextual_search_promo_title"
android:textAppearance="@style/TextAppearance.TextLarge.Primary" />
<org.chromium.ui.widget.TextViewWithClickableSpans
android:id="@+id/contextual_search_promo_text"
android:layout_below="@id/contextual_search_promo_title"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginStart="48dp"
android:layout_marginEnd="16dp"
android:bufferType="spannable"
android:textAppearance="@style/TextAppearance.TextSmall.Secondary" />
<org.chromium.ui.widget.ButtonCompat
android:id="@+id/contextual_search_allow_button"
android:layout_below="@id/contextual_search_promo_text"
android:layout_alignParentEnd="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:layout_marginEnd="16dp"
android:text="@string/contextual_search_include_button"
style="@style/FilledButton" />
<org.chromium.ui.widget.ButtonCompat
android:id="@+id/contextual_search_no_thanks_button"
android:layout_below="@id/contextual_search_promo_text"
android:layout_toStartOf="@id/contextual_search_allow_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:layout_marginEnd="16dp"
android:text="@string/contextual_search_no_thanks_button"
style="@style/TextButton" />
</RelativeLayout>
</org.chromium.components.browser_ui.widget.MaterialCardViewNoShadow>
</FrameLayout>