Index: chrome/android/java/res/layout/item_chooser_dialog_row_with_icon.xml |
diff --git a/chrome/android/java/res/layout/item_chooser_dialog_row_with_icon.xml b/chrome/android/java/res/layout/item_chooser_dialog_row_with_icon.xml |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b22d8708cd4b3cba85403f681b1bfc77d91417a4 |
--- /dev/null |
+++ b/chrome/android/java/res/layout/item_chooser_dialog_row_with_icon.xml |
@@ -0,0 +1,30 @@ |
+<?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. --> |
+ |
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
juncai
2016/08/26 19:37:48
Since we already have an item_chooser_dialog_row.x
ortuno
2016/09/12 05:11:27
Ah good idea. Done.
|
+ android:orientation="horizontal" |
+ android:layout_width="match_parent" |
+ android:layout_height="48dp" |
+ android:paddingStart="16dp" |
+ android:paddingEnd="16dp" |
+ android:gravity="center_vertical"> |
+ <LinearLayout |
+ android:id="@+id/imageContainer" |
+ android:layout_width="56dp" |
+ android:layout_height="match_parent" |
+ android:gravity="center_vertical"> |
+ <ImageView |
+ android:id="@+id/icon" |
+ android:layout_width="24dp" |
+ android:layout_height="24dp"/> |
+ </LinearLayout> |
+ <TextView |
+ android:id="@+id/description" |
+ android:layout_width="fill_parent" |
+ android:layout_height="match_parent" |
+ android:ellipsize="end" |
+ android:gravity="center_vertical" |
+ android:singleLine="true"/> |
+</LinearLayout> |