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

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

Issue 2024933002: [NTP Snippets] Show a status card when there are no available snippets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased and address comments Created 4 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/NewTabPage.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <LinearLayout
7 xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:chrome="http://schemas.android.com/apk/res-auto"
9 android:id="@+id/status_card_view"
10 android:layout_width="match_parent"
11 android:layout_height="wrap_content"
12 android:gravity="end"
13 android:orientation="vertical"
14 android:padding="@dimen/snippets_padding_and_peeking_card_height"
15 android:background="@color/snippets_background_color">
16
17 <org.chromium.ui.widget.TextViewWithLeading
18 android:id="@+id/status_headline"
19 android:text="@string/ntp_status_card_title_empty"
20 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
22 android:textSize="16sp"
23 android:textColor="@color/snippets_headline_text_color"
24 chrome:leading="24dp" />
25
26 <org.chromium.ui.widget.TextViewWithLeading
27 android:id="@+id/status_snippet"
28 android:text="@string/ntp_status_card_body_empty"
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:layout_marginTop="8dp"
32 android:textSize="14sp"
33 android:textColor="@color/snippets_text_color"
34 chrome:leading="20dp" />
35
36 <!-- Negative marginEnd to balance the parent's padding. Buttons are
37 supposed to have 8dp margin while we have a 16dp margin at the parent
38 level. -->
39 <Button
40 android:id="@+id/reload_button"
41 style="@style/ButtonCompatBorderless"
42 android:layout_marginEnd="-8dp"
43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
45 android:text="@string/reload"
46 android:textAllCaps="true"
47 android:textColor="@color/light_active_color"
48 android:textSize="15sp" />
49
50 </LinearLayout>
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698