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

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

Issue 2638353002: Update and unify nine-patch files for content suggestion and omnibox cards (Closed)
Patch Set: sync Created 3 years, 11 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
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>
OLDNEW
« no previous file with comments | « chrome/android/java/res/drawable-xxxhdpi/textbox.9.png ('k') | chrome/android/java/res/layout/new_tab_page_layout.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698