Chromium Code Reviews| Index: chrome/android/java/res/layout/contextual_search_opt_out_promo.xml |
| diff --git a/chrome/android/java/res/layout/contextual_search_opt_out_promo.xml b/chrome/android/java/res/layout/contextual_search_opt_out_promo.xml |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8c861986f7e2362c830276ceeb42369d56a97fe9 |
| --- /dev/null |
| +++ b/chrome/android/java/res/layout/contextual_search_opt_out_promo.xml |
| @@ -0,0 +1,54 @@ |
| +<?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. --> |
| + |
| +<org.chromium.chrome.browser.widget.ContextualSearchOptOutPromo |
| + xmlns:android="http://schemas.android.com/apk/res/android" |
| + xmlns:chrome="http://schemas.android.com/apk/res-auto" |
| + android:id="@+id/contextual_search_opt_out_promo" |
| + android:layout_width="match_parent" |
| + android:layout_height="wrap_content" |
| + android:orientation="vertical"> |
| + |
| + <LinearLayout |
| + android:layout_width="match_parent" |
| + android:layout_height="wrap_content" |
| + android:layout_marginTop="9dp" |
| + android:background="#EEE" |
| + android:orientation="vertical"> |
| + |
| + <!-- marginTop = 16dp - 9dp (margin above) --> |
| + <org.chromium.ui.widget.TextViewWithClickableSpans |
| + android:id="@+id/contextual_search_opt_out_text" |
| + android:color="@color/contextual_search_promo_text_color" |
| + android:layout_width="match_parent" |
| + android:layout_height="wrap_content" |
| + android:layout_marginTop="7dp" |
| + android:layout_marginStart="16dp" |
| + android:layout_marginEnd="16dp" |
| + android:bufferType="spannable" |
| + android:textSize="16sp" /> |
| + |
| + <Button |
|
Donn Denman
2015/04/02 19:44:58
As you know, we'll want to add a second button.
pedro (no code reviews)
2015/04/03 21:01:01
Acknowledged.
|
| + android:id="@+id/contextual_search_got_it_button" |
| + android:layout_width="wrap_content" |
| + android:layout_height="wrap_content" |
| + android:layout_gravity="end" |
| + android:layout_marginEnd="16dp" |
| + android:background="?attr/selectableItemBackground" |
| + android:fontFamily="sans-serif-medium" |
| + android:paddingStart="8dp" |
| + android:paddingEnd="8dp" |
| + android:text="@string/contextual_search_got_it_button" |
| + android:textAllCaps="true" |
| + android:textColor="@color/light_active_color" |
| + android:textSize="14sp" /> |
| + |
| + <View |
| + android:layout_width="match_parent" |
| + android:layout_height="1px" |
| + android:background="#c2c2c2" /> |
| + |
| + </LinearLayout> |
| +</org.chromium.chrome.browser.widget.ContextualSearchOptOutPromo> |