| OLD | NEW |
| (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> |
| OLD | NEW |