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

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

Issue 1849173002: Add a snippet item decoration to recycler view for cards and make the card full bleed with a divide… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@always-show-snippets
Patch Set: Update outRect to empty Created 4 years, 8 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/res/layout/new_tab_page_snippets_header.xml » ('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 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"
11 android:padding="16dp" 11 android:padding="16dp"
12 android:background="@drawable/bg_find_toolbar_popup"> 12 android:background="@color/snippets_background_color">
13
14 <ImageView
15 android:id="@+id/article_thumbnail"
16 android:layout_width="@dimen/snippets_thumbnail_size"
17 android:layout_height="@dimen/snippets_thumbnail_size"
18 android:layout_alignParentTop="true"
19 android:layout_alignParentEnd="true"
20 android:layout_marginStart="16dp"
21 android:scaleType="centerCrop"
22 android:contentDescription="@null"
23 android:src="@null"/>
24 13
25 <TextView 14 <TextView
26 android:id="@+id/article_headline" 15 android:id="@+id/article_headline"
27 android:layout_width="match_parent" 16 android:layout_width="match_parent"
28 android:layout_height="wrap_content" 17 android:layout_height="wrap_content"
29 android:layout_alignParentStart="true" 18 android:layout_alignParentStart="true"
30 android:layout_toStartOf="@+id/article_thumbnail" 19 android:layout_toStartOf="@+id/article_thumbnail"
31 android:maxLines="2" 20 android:maxLines="2"
32 android:ellipsize="end" 21 android:ellipsize="end"
33 android:textSize="16sp" 22 android:textSize="16sp"
(...skipping 16 matching lines...) Expand all
50 android:id="@+id/article_publisher" 39 android:id="@+id/article_publisher"
51 android:layout_width="match_parent" 40 android:layout_width="match_parent"
52 android:layout_height="wrap_content" 41 android:layout_height="wrap_content"
53 android:layout_below="@+id/article_snippet" 42 android:layout_below="@+id/article_snippet"
54 android:layout_toStartOf="@+id/article_thumbnail" 43 android:layout_toStartOf="@+id/article_thumbnail"
55 android:layout_marginTop="16dp" 44 android:layout_marginTop="16dp"
56 android:maxLines="1" 45 android:maxLines="1"
57 android:ellipsize="end" 46 android:ellipsize="end"
58 android:textSize="14sp" 47 android:textSize="14sp"
59 android:textColor="@color/snippets_publisher_name_color" /> 48 android:textColor="@color/snippets_publisher_name_color" />
49
50 <ImageView
51 android:id="@+id/article_thumbnail"
52 android:layout_width="@dimen/snippets_thumbnail_size"
53 android:layout_height="@dimen/snippets_thumbnail_size"
54 android:layout_alignParentTop="true"
55 android:layout_alignParentEnd="true"
56 android:layout_marginStart="16dp"
57 android:scaleType="centerCrop"
58 android:contentDescription="@null"
59 android:src="@null"/>
60 </RelativeLayout> 60 </RelativeLayout>
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/res/layout/new_tab_page_snippets_header.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698