Chromium Code Reviews| 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..459fde7b3dcbadc41172af2835561d0ddde0e88a |
| --- /dev/null |
| +++ b/chrome/android/java/res/layout/physical_web_list_item_nearby_url.xml |
| @@ -0,0 +1,58 @@ |
| +<?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:paddingStart="18dp" |
|
aurimas (slooooooooow)
2015/10/26 20:07:46
Since all the paddings are the same you can simply
|
| + android:paddingEnd="18dp" |
| + android:paddingTop="18dp" |
| + android:paddingBottom="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:maxLines="1" |
|
aurimas (slooooooooow)
2015/10/26 20:07:46
Use android:singleLine="true"
maxLines has bugs i
|
| + 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:maxLines="1" |
| + 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> |