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

Side by Side Diff: chrome/android/java/res/layout/new_tab_page_snippets_card.xml

Issue 1921553004: Add favicon and publisher name to snippet cards (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 5
6 <RelativeLayout 6 <RelativeLayout
7 xmlns:android="http://schemas.android.com/apk/res/android" 7 xmlns:android="http://schemas.android.com/apk/res/android"
8 android:id="@+id/snippets_card_view" 8 android:id="@+id/snippets_card_view"
9 android:layout_width="match_parent" 9 android:layout_width="match_parent"
10 android:layout_height="wrap_content" 10 android:layout_height="wrap_content"
(...skipping 21 matching lines...) Expand all
32 android:maxLines="2" 32 android:maxLines="2"
33 android:layout_marginTop="8dp" 33 android:layout_marginTop="8dp"
34 android:ellipsize="end" 34 android:ellipsize="end"
35 android:textSize="14sp" 35 android:textSize="14sp"
36 android:textColor="@color/snippets_text_color" /> 36 android:textColor="@color/snippets_text_color" />
37 37
38 <TextView 38 <TextView
39 android:id="@+id/article_publisher" 39 android:id="@+id/article_publisher"
40 android:layout_width="match_parent" 40 android:layout_width="match_parent"
41 android:layout_height="wrap_content" 41 android:layout_height="wrap_content"
42 android:layout_marginTop="16dp"
43 android:layout_alignParentStart="true"
42 android:layout_below="@+id/article_snippet" 44 android:layout_below="@+id/article_snippet"
43 android:layout_toStartOf="@+id/article_thumbnail" 45 android:drawablePadding="8dp"
44 android:layout_marginTop="16dp"
45 android:maxLines="1" 46 android:maxLines="1"
46 android:ellipsize="end" 47 android:ellipsize="end"
47 android:textSize="14sp" 48 android:textSize="12sp"
48 android:textColor="@color/snippets_publisher_name_color" /> 49 android:textColor="@color/snippets_publisher_name_color" />
49 50
50 <ImageView 51 <ImageView
51 android:id="@+id/article_thumbnail" 52 android:id="@+id/article_thumbnail"
52 android:background="@color/snippets_thumnail_placeholder_bg" 53 android:background="@color/snippets_thumnail_placeholder_bg"
53 android:layout_width="@dimen/snippets_thumbnail_size" 54 android:layout_width="@dimen/snippets_thumbnail_size"
54 android:layout_height="@dimen/snippets_thumbnail_size" 55 android:layout_height="@dimen/snippets_thumbnail_size"
55 android:layout_alignParentTop="true" 56 android:layout_alignParentTop="true"
56 android:layout_alignParentEnd="true" 57 android:layout_alignParentEnd="true"
57 android:layout_marginStart="16dp" 58 android:layout_marginStart="16dp"
58 android:scaleType="centerCrop" 59 android:scaleType="centerCrop"
59 android:contentDescription="@null" 60 android:contentDescription="@null"
60 android:src="@null"/> 61 android:src="@null" />
61 </RelativeLayout> 62 </RelativeLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698