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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/res/layout/new_tab_page_all_dismissed.xml
diff --git a/chrome/android/java/res/layout/new_tab_page_all_dismissed.xml b/chrome/android/java/res/layout/new_tab_page_all_dismissed.xml
new file mode 100644
index 0000000000000000000000000000000000000000..737fd6387a1841043e9b650e142528937b52e1bd
--- /dev/null
+++ b/chrome/android/java/res/layout/new_tab_page_all_dismissed.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file. -->
+
+<RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:chrome="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="@dimen/snippets_padding_and_peeking_card_height">
+
+ <ImageView
+ android:id="@+id/image"
+ android:layout_width="144dp"
+ android:layout_height="144dp"
+ android:layout_alignParentTop="true"
+ android:layout_centerHorizontal="true"
+ android:layout_marginTop="8dp"
+ android:layout_marginBottom="8dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginEnd="8dp"
+ android:src="@drawable/logo_card_back"
+ android:contentDescription="@null"
+ android:importantForAccessibility="no" />
+
+ <org.chromium.ui.widget.TextViewWithLeading
+ android:id="@+id/title_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/image"
+ android:layout_alignParentStart="true"
+ android:gravity="center_horizontal"
+ android:text="@string/ntp_all_dismissed_title_text"
+ android:textSize="16sp"
+ android:textColor="@color/snippets_headline_text_color"
+ chrome:leading="24dp" />
+
+ <org.chromium.ui.widget.TextViewWithLeading
+ android:id="@+id/body_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/title_text"
+ android:layout_alignParentStart="true"
+ android:layout_marginTop="8dp"
+ android:gravity="center_horizontal"
+ android:text="@string/ntp_all_dismissed_body_text_morning"
+ android:textSize="14sp"
+ android:textColor="@color/snippets_text_color"
+ chrome:leading="20dp" />
+
+ <Button
+ android:id="@+id/action_button"
+ style="@style/ButtonCompatBorderless"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/body_text"
+ android:layout_centerHorizontal="true"
+ android:layout_marginTop="16dp"
+ android:text="@string/ntp_all_dismissed_refresh"
+ android:textAllCaps="true"
+ android:textColor="@color/light_active_color"
+ android:textSize="15sp" />
+
+</RelativeLayout>

Powered by Google App Engine
This is Rietveld 408576698