blob: 52f769adb0cc4d4a995b359586eb8f8debffbe29 [file] [log] [blame]
<?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.
-->
<android.support.v7.widget.GridLayout
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"
android:clickable="true"
android:background="@drawable/hairline_border_card_background"
app:columnCount="1"
app:rowCount="2">
<org.chromium.chrome.browser.download.home.list.view.AsyncImageView
android:id="@+id/thumbnail"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginTop="1dp"
android:layout_marginStart="1dp"
android:layout_marginEnd="1dp"
android:scaleType="centerCrop"
android:adjustViewBounds="true"
app:layout_column="0"
app:layout_row="0"
app:layout_gravity="center"
app:cornerRadiusTopStart="@dimen/download_manager_thumbnail_corner_radius"
app:cornerRadiusTopEnd="@dimen/download_manager_thumbnail_corner_radius"
app:roundedfillColor="@color/modern_grey_300"
style="@style/AsyncImageView"/>
<org.chromium.chrome.browser.download.home.view.SelectionView
android:id="@+id/selection"
style="@style/DownloadItemSelectionView"
app:layout_column="0"
app:layout_row="0" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:baselineAligned="false"
app:layout_column="0"
app:layout_row="1">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginStart="16dp"
android:layout_weight="1">
<TextView
android:id="@+id/title"
style="@style/DownloadItemText"
android:layout_width="match_parent"
android:layout_marginTop="11dp"
android:textAppearance="@style/TextAppearance.BlackTitle1" />
<TextView
android:id="@+id/caption"
style="@style/DownloadItemText"
android:layout_width="match_parent"
android:layout_marginBottom="11dp"
android:textAppearance="@style/TextAppearance.BlackHint2" />
</LinearLayout>
<include layout="@layout/list_menu_button"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_weight="0" />
</LinearLayout>
</android.support.v7.widget.GridLayout>