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

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

Issue 1412423007: Modify Physical Web Nearby URLs list to resemble search results (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip (fix maxLines->singleLine) Created 5 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/physical_web_list_item_nearby_url.xml
diff --git a/chrome/android/java/res/layout/physical_web_list_item_nearby_url.xml b/chrome/android/java/res/layout/physical_web_list_item_nearby_url.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e4311e9a58d85fdbe9f1a77b32933f1c4dba72af
--- /dev/null
+++ b/chrome/android/java/res/layout/physical_web_list_item_nearby_url.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2015 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. -->
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:padding="18dp"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+ <ImageView
+ android:id="@+id/nearby_urls_icon"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_marginTop="6dp"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentEnd="true"
+ android:contentDescription="@null">
+ </ImageView>
+ <TextView
+ android:id="@+id/nearby_urls_title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_toStartOf="@id/nearby_urls_icon"
+ android:layout_alignParentStart="true"
+ android:textSize="20sp"
+ android:textColor="@color/nearby_urls_header_color"
+ android:singleLine="true"
+ android:ellipsize="end">
+ </TextView>
+ <TextView
+ android:id="@+id/nearby_urls_url"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/nearby_urls_title"
+ android:layout_toStartOf="@id/nearby_urls_icon"
+ android:layout_alignParentStart="true"
+ android:textSize="14sp"
+ android:textColor="@color/nearby_urls_url_color"
+ android:singleLine="true"
+ android:ellipsize="end">
+ </TextView>
+ <TextView
+ android:id="@+id/nearby_urls_description"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/nearby_urls_url"
+ android:layout_alignParentStart="true"
+ android:textSize="14sp"
+ android:textColor="@color/nearby_urls_description_color"
+ android:lines="2"
+ android:ellipsize="end"
+ android:lineSpacingExtra="1.5dp">
+ </TextView>
+</RelativeLayout>
« no previous file with comments | « chrome/android/java/AndroidManifest.xml ('k') | chrome/android/java/res/layout/physical_web_list_urls_activity.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698