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

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

Issue 2704263004: bluetooth: Add connected icon to Bluetooth Chooser on Android (Closed)
Patch Set: Address tedchoc's comments Created 3 years, 8 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..dac2d11a911f073642738e09b7fdd6e22420eca3 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,22 @@
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:background="@drawable/item_chooser_row_background">
+ <!-- contentDescription is added at runtime. -->
+ <ImageView
+ android:id="@+id/icon"
+ android:contentDescription="@null"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_centerVertical="true"
+ android:layout_marginEnd="16dp"/>
<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"
- android:layout_centerVertical="true"/>
+ android:textSize="16sp"
+ android:textColor="@color/item_chooser_row_text_color"/>
</RelativeLayout>

Powered by Google App Engine
This is Rietveld 408576698