Chromium Code Reviews| Index: chrome/android/java/res/layout/item_chooser_dialog_row.xml |
| diff --git a/chrome/android/java/res/layout/item_chooser_dialog_row.xml b/chrome/android/java/res/layout/item_chooser_dialog_row.xml |
| index a3543dc9e54c6d61ab6ba06ccfd695ef845a582e..84fab009d631effe007e585dcbd51e923955409a 100644 |
| --- a/chrome/android/java/res/layout/item_chooser_dialog_row.xml |
| +++ b/chrome/android/java/res/layout/item_chooser_dialog_row.xml |
| @@ -8,12 +8,21 @@ |
| android:paddingStart="16dp" |
| android:paddingEnd="16dp" |
| android:background="@drawable/item_chooser_row_background"> |
| - <TextView |
| - android:id="@+id/description" |
| - android:layout_width="match_parent" |
| - android:layout_height="wrap_content" |
| - android:ellipsize="end" |
| - android:maxLines="1" |
| - android:textColor="@color/item_chooser_row_text_color" |
| - android:layout_centerVertical="true"/> |
| + <!-- contentDescription is added at runtime. --> |
|
Ian Wen
2016/10/26 21:53:32
Please fix the indentation. Child element should i
|
| + <ImageView |
| + android:id="@+id/icon" |
| + android:contentDescription="@null" |
| + android:layout_width="24dp" |
| + android:layout_height="24dp" |
| + android:layout_centerVertical="true" |
| + android:layout_marginEnd="32dp"/> |
| + <TextView |
| + android:id="@+id/description" |
| + android:layout_width="match_parent" |
| + android:layout_height="wrap_content" |
| + android:layout_centerVertical="true" |
| + android:layout_toEndOf="@+id/icon" |
| + android:ellipsize="end" |
| + android:maxLines="1" |
| + android:textColor="@color/item_chooser_row_text_color"/> |
| </RelativeLayout> |