| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright 2017 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 the suggested offline pages section header in the DownloadHistoryAdapter. --> |
| <view |
| class="org.chromium.chrome.browser.download.ui.OfflineGroupHeaderView" |
| 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="wrap_content" |
| android:layout_height="wrap_content" > |
| |
| <LinearLayout |
| android:id="@+id/layout_container" |
| style="@style/ListItemContainer" > |
| |
| <org.chromium.ui.widget.ChromeImageView |
| android:id="@+id/icon_view" |
| style="@style/DownloadIconView" |
| android:src="@drawable/ic_chrome" |
| app:tint="@color/standard_mode_tint" /> |
| |
| <RelativeLayout |
| android:id="@+id/completed_layout" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" > |
| |
| <LinearLayout |
| android:id="@+id/filename_row" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" > |
| |
| <TextView |
| android:id="@+id/title" |
| style="@style/DownloadTitleStyle" |
| android:layout_weight="1" |
| android:text="@string/download_manager_offline_header_title" /> |
| |
| <!-- TODO(shaktisahu) : Add it back on when UX is determined. --> |
| <TextView |
| android:id="@+id/new_badge" |
| style="@style/DownloadNewBadgeStyle" |
| android:layout_weight="0" |
| android:visibility="gone" /> |
| |
| <org.chromium.ui.widget.ChromeImageView |
| android:id="@+id/expand_icon" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_weight="0" |
| android:layout_gravity="center_vertical|end" |
| android:paddingEnd="16dp" |
| tools:ignore="ContentDescription" |
| android:src="@drawable/ic_expand_more_black_24dp" |
| app:tint="@color/standard_mode_tint" /> |
| </LinearLayout> |
| |
| <TextView |
| android:id="@+id/description" |
| style="@style/DownloadDescriptionStyle" |
| android:layout_below="@+id/filename_row" |
| android:text="@string/download_manager_offline_header_description" /> |
| </RelativeLayout> |
| </LinearLayout> |
| </view> |