| Index: chrome/android/java/res/layout/download_item_view.xml
|
| diff --git a/chrome/android/java/res/layout/download_item_view.xml b/chrome/android/java/res/layout/download_item_view.xml
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f12d54544ccec44e67f0ab3e36d03f3b56d6bd6f
|
| --- /dev/null
|
| +++ b/chrome/android/java/res/layout/download_item_view.xml
|
| @@ -0,0 +1,63 @@
|
| +<?xml version="1.0" encoding="utf-8"?>
|
| +<!-- Copyright 2016 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. -->
|
| +
|
| +<!-- Represents a single item in the DownloadHistoryAdapterView. -->
|
| +<RelativeLayout
|
| + xmlns:android="http://schemas.android.com/apk/res/android"
|
| + android:layout_width="wrap_content"
|
| + android:layout_height="wrap_content"
|
| + android:layout_marginStart="16dp"
|
| + android:layout_marginEnd="16dp"
|
| + android:layout_marginTop="16dp"
|
| + android:layout_marginBottom="16dp" >
|
| +
|
| + <ImageView
|
| + android:id="@+id/icon_view"
|
| + android:layout_width="48dp"
|
| + android:layout_height="48dp"
|
| + android:layout_alignParentStart="true"
|
| + android:layout_alignParentTop="true"
|
| + android:layout_alignParentBottom="true"
|
| + android:layout_marginEnd="16dp"
|
| + android:contentDescription="@null"
|
| + android:scaleType="centerInside"
|
| + android:background="@color/light_active_color" />
|
| +
|
| + <TextView
|
| + android:id="@+id/filename_view"
|
| + android:layout_width="wrap_content"
|
| + android:layout_height="wrap_content"
|
| + android:layout_alignParentTop="true"
|
| + android:layout_alignParentEnd="true"
|
| + android:layout_toEndOf="@+id/icon_view"
|
| + android:singleLine="true"
|
| + android:textColor="@color/default_text_color"
|
| + android:textSize="16sp" />
|
| +
|
| + <TextView
|
| + android:id="@+id/hostname_view"
|
| + android:layout_width="0dp"
|
| + android:layout_height="wrap_content"
|
| + android:layout_alignParentBottom="true"
|
| + android:layout_toEndOf="@+id/icon_view"
|
| + android:layout_toStartOf="@+id/filesize_view"
|
| + android:layout_below="@+id/filename_view"
|
| + android:layout_marginEnd="16dp"
|
| + android:layout_marginTop="0dp"
|
| + android:ellipsize="start"
|
| + android:singleLine="true" />
|
| +
|
| + <TextView
|
| + android:id="@+id/filesize_view"
|
| + android:layout_width="wrap_content"
|
| + android:layout_height="wrap_content"
|
| + android:layout_alignParentBottom="true"
|
| + android:layout_alignParentEnd="true"
|
| + android:layout_below="@+id/filename_view"
|
| + android:layout_marginTop="0dp"
|
| + android:textAlignment="viewEnd"
|
| + android:singleLine="true" />
|
| +
|
| +</RelativeLayout>
|
|
|