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

Unified Diff: chrome/android/java/res/layout/item_chooser_dialog_row_with_icon.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: Clean up Created 4 years, 4 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_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>

Powered by Google App Engine
This is Rietveld 408576698