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

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

Issue 1955813002: Create TextViewWithLeading. (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 xmlns:chrome="http://schemas.android.com/apk/res-auto"
8 android:id="@+id/snippets_card_view" 9 android:id="@+id/snippets_card_view"
9 android:layout_width="match_parent" 10 android:layout_width="match_parent"
10 android:layout_height="wrap_content" 11 android:layout_height="wrap_content"
11 android:padding="16dp" 12 android:padding="16dp"
12 android:background="@color/snippets_background_color"> 13 android:background="@color/snippets_background_color">
13 14
14 <TextView 15 <org.chromium.ui.widget.TextViewWithLeading
15 android:id="@+id/article_headline" 16 android:id="@+id/article_headline"
16 android:layout_width="match_parent" 17 android:layout_width="match_parent"
17 android:layout_height="wrap_content" 18 android:layout_height="wrap_content"
18 android:layout_alignParentStart="true" 19 android:layout_alignParentStart="true"
19 android:layout_toStartOf="@+id/article_thumbnail" 20 android:layout_toStartOf="@+id/article_thumbnail"
20 android:maxLines="2" 21 android:maxLines="2"
21 android:ellipsize="end" 22 android:ellipsize="end"
22 android:textSize="16sp" 23 android:textSize="16sp"
23 android:textColor="@color/snippets_headline_text_color" /> 24 android:textColor="@color/snippets_headline_text_color"
25 chrome:leading="24dp" />
24 26
25 <TextView 27 <org.chromium.ui.widget.TextViewWithLeading
26 android:id="@+id/article_snippet" 28 android:id="@+id/article_snippet"
27 android:layout_width="match_parent" 29 android:layout_width="match_parent"
28 android:layout_height="wrap_content" 30 android:layout_height="wrap_content"
29 android:layout_alignParentStart="true" 31 android:layout_alignParentStart="true"
30 android:layout_below="@+id/article_headline" 32 android:layout_below="@+id/article_headline"
31 android:layout_toStartOf="@+id/article_thumbnail" 33 android:layout_toStartOf="@+id/article_thumbnail"
34 android:layout_marginTop="8dp"
32 android:maxLines="2" 35 android:maxLines="2"
33 android:layout_marginTop="8dp"
34 android:ellipsize="end" 36 android:ellipsize="end"
35 android:textSize="14sp" 37 android:textSize="14sp"
36 android:textColor="@color/snippets_text_color" /> 38 android:textColor="@color/snippets_text_color"
39 chrome:leading="20dp" />
37 40
38 <TextView 41 <TextView
39 android:id="@+id/article_publisher" 42 android:id="@+id/article_publisher"
40 android:layout_width="match_parent" 43 android:layout_width="match_parent"
41 android:layout_height="wrap_content" 44 android:layout_height="wrap_content"
42 android:layout_marginTop="16dp" 45 android:layout_marginTop="16dp"
43 android:layout_alignParentStart="true" 46 android:layout_alignParentStart="true"
44 android:layout_below="@+id/article_snippet" 47 android:layout_below="@+id/article_snippet"
45 android:drawablePadding="8dp" 48 android:drawablePadding="8dp"
46 android:maxLines="1" 49 android:maxLines="1"
47 android:ellipsize="end" 50 android:ellipsize="end"
48 android:textSize="12sp" 51 android:textSize="12sp"
49 android:textColor="@color/snippets_publisher_name_color" /> 52 android:textColor="@color/snippets_publisher_name_color" />
50 53
51 <ImageView 54 <ImageView
52 android:id="@+id/article_thumbnail" 55 android:id="@+id/article_thumbnail"
53 android:background="@color/snippets_thumnail_placeholder_bg" 56 android:background="@color/snippets_thumnail_placeholder_bg"
54 android:layout_width="@dimen/snippets_thumbnail_size" 57 android:layout_width="@dimen/snippets_thumbnail_size"
55 android:layout_height="@dimen/snippets_thumbnail_size" 58 android:layout_height="@dimen/snippets_thumbnail_size"
56 android:layout_alignParentTop="true" 59 android:layout_alignParentTop="true"
57 android:layout_alignParentEnd="true" 60 android:layout_alignParentEnd="true"
58 android:layout_marginStart="16dp" 61 android:layout_marginStart="16dp"
59 android:scaleType="centerCrop" 62 android:scaleType="centerCrop"
60 android:contentDescription="@null" 63 android:contentDescription="@null"
61 android:src="@null" /> 64 android:src="@null" />
62 </RelativeLayout> 65 </RelativeLayout>
OLDNEW
« no previous file with comments | « no previous file | ui/android/BUILD.gn » ('j') | ui/android/java/src/org/chromium/ui/widget/TextViewWithLeading.java » ('J')

Powered by Google App Engine
This is Rietveld 408576698