<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2020 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="@dimen/query_tile_view_width"
android:layout_height="@dimen/query_tile_view_height"
android:orientation="vertical">
<org.chromium.components.browser_ui.widget.RoundedCornerImageView
android:id="@+id/thumbnail"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:scaleType="centerCrop"
android:importantForAccessibility="no"
app:cornerRadiusBottomStart="@dimen/default_rounded_corner_radius"
app:cornerRadiusBottomEnd="@dimen/default_rounded_corner_radius"
app:cornerRadiusTopStart="@dimen/default_rounded_corner_radius"
app:cornerRadiusTopEnd="@dimen/default_rounded_corner_radius" />
<ImageView
android:id="@+id/gradient_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:importantForAccessibility="no"
app:srcCompat="@drawable/query_tile_overlay"/>
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:paddingBottom="8dp"
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:breakStrategy="balanced"
android:textAppearance="@style/TextAppearance.TextSmall.Primary.Baseline.Light"/>
</RelativeLayout>