Chromium Code Reviews| Index: chrome/android/java/res/layout/download_manager_ui_drawer_filter.xml |
| diff --git a/chrome/android/java/res/layout/download_manager_ui_drawer_filter.xml b/chrome/android/java/res/layout/download_manager_ui_drawer_filter.xml |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fca02f1a740dabfc018da3db4db55e154e688b22 |
| --- /dev/null |
| +++ b/chrome/android/java/res/layout/download_manager_ui_drawer_filter.xml |
| @@ -0,0 +1,26 @@ |
| +<?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 filter in the drawer. See DownloadManagerUi#FilterAdapter. --> |
| +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"> |
| + |
| + <ImageView |
|
Ian Wen
2016/06/16 20:39:21
Q: Can we achieve the same effect with TextView an
gone
2016/06/21 18:23:02
Done.
|
| + android:id="@+id/icon" |
| + android:layout_width="48dp" |
| + android:layout_height="48dp" |
| + android:layout_gravity="start" |
| + android:scaleType="center" |
| + android:tint="@color/descriptive_text_color" /> |
| + |
| + <TextView |
| + android:id="@+id/label" |
| + android:layout_width="match_parent" |
| + android:layout_height="48dp" |
| + android:layout_gravity="start" |
| + android:paddingStart="48dp" |
| + android:textColor="@color/default_text_color" |
| + android:gravity="center_vertical" /> |
| + |
| +</FrameLayout> |