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 <!-- The Layout takes the regular NTP Card attributes (padding, background | |
7 drawable) and adds the selectable ripple effects as foreground. The foreground | |
Bernhard Bauer
2016/08/09 09:02:06
I would align the text in the comment (like in the
dgn
2016/08/09 13:00:42
Done.
| |
8 property requires to use a FrameLayout. --> | |
9 <FrameLayout | |
10 xmlns:android="http://schemas.android.com/apk/res/android" | |
11 xmlns:chrome="http://schemas.android.com/apk/res-auto" | |
12 android:layout_width="match_parent" | |
13 android:layout_height="wrap_content" | |
14 android:foreground="?attr/selectableItemBackgroundBorderless" | |
15 android:clickable="true" | |
16 android:padding="@dimen/snippets_padding_and_peeking_card_height" | |
17 android:background="@drawable/ntp_card"> | |
18 | |
19 <!-- We don't use a button here since the effect and the click handler will | |
20 be done at the parent level, directly on the layout. We transferred select | |
21 styling properties from ButtonCompatBorderless and made it unfocusable.--> | |
22 <TextView | |
23 android:layout_width="wrap_content" | |
Bernhard Bauer
2016/08/09 09:02:06
Indent two more spaces
dgn
2016/08/09 13:00:42
Done.
| |
24 android:layout_height="wrap_content" | |
25 android:minHeight="36dp" | |
26 android:gravity="center_vertical|center_horizontal" | |
27 android:textSize="15sp" | |
28 android:paddingStart="8dp" | |
PEConn
2016/08/08 18:13:12
I think the style guide says that elements that ar
dgn
2016/08/09 13:00:42
Done.
| |
29 android:text="@string/more" | |
30 android:textAllCaps="true" | |
31 android:clickable="false" | |
32 android:focusable="false" | |
33 android:textStyle="bold" | |
34 android:textColor="@color/light_active_color"/> | |
Bernhard Bauer
2016/08/09 09:02:06
Nit: space before closing the tag
dgn
2016/08/09 13:00:42
Done.
| |
35 | |
36 </FrameLayout> | |
OLD | NEW |