| OLD | NEW |
| 1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
| 2 <!-- Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 <!-- Unlike regular cards, we use a material standard 8dp padding instead of the | 6 <!-- Unlike regular cards, we use a material standard 8dp padding instead of the |
| 7 bigger one related to the peeking behaviour. This card will only have | 7 bigger one related to the peeking behaviour. This card will only have |
| 8 buttons, that have themselves some padding. We just stay within the | 8 buttons, that have themselves some padding. We just stay within the |
| 9 material specifications. --> | 9 material specifications. --> |
| 10 <LinearLayout | 10 <LinearLayout |
| 11 xmlns:android="http://schemas.android.com/apk/res/android" | 11 xmlns:android="http://schemas.android.com/apk/res/android" |
| 12 xmlns:chrome="http://schemas.android.com/apk/res-auto" | 12 xmlns:chrome="http://schemas.android.com/apk/res-auto" |
| 13 android:layout_width="match_parent" | 13 android:layout_width="match_parent" |
| 14 android:layout_height="wrap_content" | 14 android:layout_height="wrap_content" |
| 15 android:orientation="vertical" | 15 android:orientation="vertical" |
| 16 android:padding="8dp" | 16 android:padding="8dp" |
| 17 android:background="@drawable/ntp_card_single"> | 17 android:background="@drawable/card_single"> |
| 18 | 18 |
| 19 | 19 |
| 20 <!-- Using some standard metrics (minWidth, paddings) to override the | 20 <!-- Using some standard metrics (minWidth, paddings) to override the |
| 21 special ones used in ButtonCompatBorderless --> | 21 special ones used in ButtonCompatBorderless --> |
| 22 <Button | 22 <Button |
| 23 android:id="@+id/action_button" | 23 android:id="@+id/action_button" |
| 24 android:layout_width="wrap_content" | 24 android:layout_width="wrap_content" |
| 25 android:layout_height="wrap_content" | 25 android:layout_height="wrap_content" |
| 26 android:gravity="center_vertical|center_horizontal" | 26 android:gravity="center_vertical|center_horizontal" |
| 27 android:minWidth="0dp" | 27 android:minWidth="0dp" |
| 28 android:paddingEnd="16dp" | 28 android:paddingEnd="16dp" |
| 29 android:paddingStart="16dp" | 29 android:paddingStart="16dp" |
| 30 android:text="@string/more" | 30 android:text="@string/more" |
| 31 android:textAllCaps="true" | 31 android:textAllCaps="true" |
| 32 android:textColor="@color/light_active_color" | 32 android:textColor="@color/light_active_color" |
| 33 style="@style/ButtonCompatBorderless" /> | 33 style="@style/ButtonCompatBorderless" /> |
| 34 </LinearLayout> | 34 </LinearLayout> |
| OLD | NEW |