OLD | NEW |
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- | 2 <!-- |
3 Copyright 2015 The Chromium Authors. All rights reserved. | 3 Copyright 2015 The Chromium Authors. All rights reserved. |
4 | 4 |
5 Use of this source code is governed by a BSD-style license that can be | 5 Use of this source code is governed by a BSD-style license that can be |
6 found in the LICENSE file. | 6 found in the LICENSE file. |
7 --> | 7 --> |
8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
9 android:id="@+id/contextual_search_peek_promo_text_view" | 9 android:id="@+id/contextual_search_peek_promo_text_view" |
10 android:layout_width="match_parent" | 10 android:layout_width="match_parent" |
11 android:layout_height="wrap_content" | 11 android:layout_height="wrap_content" |
12 android:orientation="horizontal" | 12 android:orientation="horizontal" |
13 android:paddingStart="@dimen/contextual_search_peek_promo_padding" | 13 android:paddingStart="@dimen/contextual_search_peek_promo_padding" |
14 android:paddingEnd="@dimen/contextual_search_peek_promo_padding"> | 14 android:paddingEnd="@dimen/contextual_search_peek_promo_padding"> |
15 <TextView | 15 <TextView |
16 android:id="@+id/contextual_search_peek_promo_new" | 16 android:id="@+id/contextual_search_peek_promo_new" |
17 android:layout_width="wrap_content" | 17 android:layout_width="wrap_content" |
18 android:layout_height="wrap_content" | 18 android:layout_height="wrap_content" |
19 android:layout_marginEnd="@dimen/contextual_search_peek_promo_padding" | 19 android:layout_marginEnd="@dimen/contextual_search_peek_promo_padding" |
20 android:background="@drawable/contextual_search_peek_promo_new_backgroun
d" | 20 android:background="@drawable/contextual_search_peek_promo_new_backgroun
d" |
| 21 android:fontFamily="sans-serif-medium" |
21 android:text="@string/contextual_search_peek_promo_new" | 22 android:text="@string/contextual_search_peek_promo_new" |
22 android:textAllCaps="true" | 23 android:textAllCaps="true" |
23 android:textColor="@color/light_active_color" | 24 android:textColor="@color/light_active_color" |
24 android:textSize="14sp" | 25 android:textSize="14sp" |
25 /> | 26 /> |
26 <!-- TODO(pedrosimonetti): Find a better layout for handling multiline text
--> | 27 <!-- TODO(pedrosimonetti): Find a better layout for handling multiline text
--> |
27 <TextView | 28 <TextView |
28 android:id="@+id/contextual_search_peek_promo_text" | 29 android:id="@+id/contextual_search_peek_promo_text" |
29 android:layout_width="wrap_content" | 30 android:layout_width="wrap_content" |
30 android:layout_height="wrap_content" | 31 android:layout_height="wrap_content" |
| 32 android:fontFamily="sans-serif" |
31 android:text="@string/contextual_search_peek_promo_text" | 33 android:text="@string/contextual_search_peek_promo_text" |
32 android:textColor="#FFF" | 34 android:textColor="#FFF" |
33 android:textSize="14sp" | 35 android:textSize="14sp" |
34 /> | 36 /> |
35 </LinearLayout> | 37 </LinearLayout> |
OLD | NEW |