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

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

Issue 2271413002: bluetooth: Implement RSSI indicator on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-impl-rssi-tx-power
Patch Set: Draft of LevelListDrawable and StateListDrawable 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 f36586a3aeef43f02463257c0e7302dfeb85147c..cf6265ec135679490a1edece920e03d96945f8fa 100644
--- a/chrome/android/java/res/layout/item_chooser_dialog_row.xml
+++ b/chrome/android/java/res/layout/item_chooser_dialog_row.xml
@@ -3,11 +3,26 @@
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
-<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="48dp"
android:paddingStart="16dp"
- android:paddingEnd="16dp"
- android:ellipsize="end"
- android:gravity="center_vertical"
- android:singleLine="true" />
+ android:paddingEnd="16dp">
+
+ <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:ellipsize="end"
+ android:maxLines="1"
+ android:layout_centerVertical="true"
+ android:layout_toEndOf="@+id/icon" />
+</RelativeLayout>

Powered by Google App Engine
This is Rietveld 408576698