Chromium Code Reviews| Index: chrome/android/java/res/layout/contextual_search_peek_promo.xml |
| diff --git a/chrome/android/java/res/layout/contextual_search_peek_promo.xml b/chrome/android/java/res/layout/contextual_search_peek_promo.xml |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9b81543539fcadab1e2e18a9ef5ff0d0e9c18361 |
| --- /dev/null |
| +++ b/chrome/android/java/res/layout/contextual_search_peek_promo.xml |
| @@ -0,0 +1,34 @@ |
| +<?xml version="1.0" encoding="utf-8"?> |
| +<!-- |
| + Copyright 2015 The Chromium Authors. All rights reserved. |
| + |
| + Use of this source code is governed by a BSD-style license that can be |
| + found in the LICENSE file. |
| +--> |
| +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| + android:id="@+id/contextual_search_peek_promo" |
| + android:layout_width="match_parent" |
| + android:layout_height="@dimen/contextual_search_peek_promo_height" |
| + android:orientation="horizontal" |
| + android:paddingStart="@dimen/contextual_search_peek_promo_padding" |
| + android:paddingEnd="@dimen/contextual_search_peek_promo_padding" |
| + android:textSize="14sp"> |
|
aurimas (slooooooooow)
2015/10/03 00:54:02
Does android:textSize on a linear layout set the t
pedro (no code reviews)
2015/10/05 02:13:21
You're right. Moved declaration to each TextView.
|
| + <TextView |
| + android:id="@+id/contextual_search_peek_promo_new" |
| + android:layout_width="wrap_content" |
| + android:layout_height="wrap_content" |
| + android:layout_marginEnd="@dimen/contextual_search_peek_promo_padding" |
| + android:background="@drawable/contextual_search_peek_promo_new_background" |
| + android:text="@string/contextual_search_peek_promo_new" |
| + android:textAllCaps="true" |
| + android:textColor="@color/light_active_color" |
| + /> |
| + <!-- TODO(pedrosimonetti): Find a better layout for handling multiline text --> |
| + <TextView |
| + android:id="@+id/contextual_search_peek_promo_text" |
| + android:layout_width="wrap_content" |
| + android:layout_height="wrap_content" |
| + android:text="@string/contextual_search_peek_promo_text" |
| + android:textColor="#FFF" |
| + /> |
| +</LinearLayout> |