Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: chrome/android/java/res/layout/item_chooser_dialog_row.xml

Issue 2431243003: bluetooth: Show connected icon for connected devices. (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698