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

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

Issue 2400783003: Ntp: show AllDismissedItem when all sections have been dismissed. (Closed)
Patch Set: Address review comments. Created 4 years, 2 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
(Empty)
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2016 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. -->
5
6 <RelativeLayout
7 xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:chrome="http://schemas.android.com/apk/res-auto"
9 android:layout_width="match_parent"
10 android:layout_height="wrap_content"
11 android:padding="@dimen/snippets_padding_and_peeking_card_height">
12
13 <ImageView
14 android:id="@+id/image"
15 android:layout_width="144dp"
16 android:layout_height="144dp"
17 android:layout_alignParentTop="true"
18 android:layout_centerHorizontal="true"
19 android:layout_marginTop="8dp"
20 android:layout_marginBottom="8dp"
21 android:layout_marginStart="8dp"
22 android:layout_marginEnd="8dp"
23 android:src="@drawable/logo_card_back"
24 android:contentDescription="@null"
25 android:importantForAccessibility="no" />
26
27 <org.chromium.ui.widget.TextViewWithLeading
28 android:id="@+id/title_text"
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:layout_below="@id/image"
32 android:layout_alignParentStart="true"
33 android:gravity="center_horizontal"
34 android:text="@string/ntp_all_dismissed_title_text"
35 android:textSize="16sp"
36 android:textColor="@color/snippets_headline_text_color"
37 chrome:leading="24dp" />
38
39 <org.chromium.ui.widget.TextViewWithLeading
40 android:id="@+id/body_text"
41 android:layout_width="match_parent"
42 android:layout_height="wrap_content"
43 android:layout_below="@id/title_text"
44 android:layout_alignParentStart="true"
45 android:layout_marginTop="8dp"
46 android:gravity="center_horizontal"
47 android:text="@string/ntp_all_dismissed_body_text_morning"
48 android:textSize="14sp"
49 android:textColor="@color/snippets_text_color"
50 chrome:leading="20dp" />
51
52 <Button
53 android:id="@+id/action_button"
54 style="@style/ButtonCompatBorderless"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 android:layout_below="@id/body_text"
58 android:layout_centerHorizontal="true"
59 android:layout_marginTop="16dp"
60 android:text="@string/ntp_all_dismissed_refresh"
61 android:textAllCaps="true"
62 android:textColor="@color/light_active_color"
63 android:textSize="15sp" />
64
65 </RelativeLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698