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

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

Issue 2939723003: Allow 3 lines for suggestion headers when summaries are not shown. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleViewHolder.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 xmlns:chrome="http://schemas.android.com/apk/res-auto" 8 xmlns:chrome="http://schemas.android.com/apk/res-auto"
9 xmlns:tools="http://schemas.android.com/tools" 9 xmlns:tools="http://schemas.android.com/tools"
10 android:id="@+id/snippets_card_view" 10 android:id="@+id/snippets_card_view"
11 android:layout_width="match_parent" 11 android:layout_width="match_parent"
12 android:layout_height="wrap_content" 12 android:layout_height="wrap_content"
13 android:foreground="@drawable/button_borderless_compat" 13 android:foreground="@drawable/button_borderless_compat"
14 android:padding="@dimen/snippets_padding" 14 android:padding="@dimen/snippets_padding"
15 android:background="@drawable/card_single"> 15 android:background="@drawable/card_single">
16 16
17 <org.chromium.ui.widget.TextViewWithLeading 17 <org.chromium.ui.widget.TextViewWithLeading
18 android:id="@+id/article_headline" 18 android:id="@+id/article_headline"
19 android:layout_width="match_parent" 19 android:layout_width="match_parent"
20 android:layout_height="wrap_content" 20 android:layout_height="wrap_content"
21 android:layout_alignParentStart="true" 21 android:layout_alignParentStart="true"
22 android:layout_toStartOf="@+id/article_thumbnail" 22 android:layout_toStartOf="@+id/article_thumbnail"
23 android:maxLines="2"
24 android:ellipsize="end" 23 android:ellipsize="end"
25 android:textSize="16sp" 24 android:textSize="16sp"
26 android:textColor="@color/snippets_headline_text_color" 25 android:textColor="@color/snippets_headline_text_color"
27 chrome:leading="24dp" /> 26 chrome:leading="24dp" />
28 27
29 <org.chromium.ui.widget.TextViewWithLeading 28 <org.chromium.ui.widget.TextViewWithLeading
30 android:id="@+id/article_snippet" 29 android:id="@+id/article_snippet"
31 android:layout_width="match_parent" 30 android:layout_width="match_parent"
32 android:layout_height="wrap_content" 31 android:layout_height="wrap_content"
33 android:layout_alignParentStart="true" 32 android:layout_alignParentStart="true"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 android:id="@+id/article_thumbnail" 100 android:id="@+id/article_thumbnail"
102 android:layout_width="@dimen/snippets_thumbnail_size" 101 android:layout_width="@dimen/snippets_thumbnail_size"
103 android:layout_height="@dimen/snippets_thumbnail_size" 102 android:layout_height="@dimen/snippets_thumbnail_size"
104 android:layout_alignParentTop="true" 103 android:layout_alignParentTop="true"
105 android:layout_alignParentEnd="true" 104 android:layout_alignParentEnd="true"
106 android:layout_marginStart="@dimen/snippets_thumbnail_margin" 105 android:layout_marginStart="@dimen/snippets_thumbnail_margin"
107 android:scaleType="centerCrop" 106 android:scaleType="centerCrop"
108 android:contentDescription="@null" 107 android:contentDescription="@null"
109 android:src="@null" /> 108 android:src="@null" />
110 </RelativeLayout> 109 </RelativeLayout>
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleViewHolder.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698