| 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..a92359c48ef66d1a5faeea85337f4c13b539ac18
|
| --- /dev/null
|
| +++ b/chrome/android/java/res/layout/contextual_search_opt_out_promo.xml
|
| @@ -0,0 +1,70 @@
|
| +<?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.compositor.bottombar.contextualsearch.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:background="@drawable/contextual_search_promo_background"
|
| + 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_alignParentTop="true"
|
| + android:layout_alignParentStart="true"
|
| + android:layout_alignParentEnd="true"
|
| + 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
|
| + android:id="@+id/contextual_search_got_it_button"
|
| + android:layout_below="@id/contextual_search_opt_out_text"
|
| + android:layout_alignParentEnd="true"
|
| + 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" />
|
| +
|
| + <Button
|
| + android:id="@+id/contextual_search_no_thanks_button"
|
| + android:layout_below="@id/contextual_search_opt_out_text"
|
| + android:layout_toStartOf="@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_no_thanks_button"
|
| + android:textAllCaps="true"
|
| + android:textColor="@color/light_active_color"
|
| + android:textSize="14sp" />
|
| +
|
| + <View
|
| + android:layout_below="@id/contextual_search_got_it_button"
|
| + android:layout_width="match_parent"
|
| + android:layout_height="1px"
|
| + android:background="#c2c2c2" />
|
| +
|
| +</org.chromium.chrome.browser.compositor.bottombar.contextualsearch.ContextualSearchOptOutPromo>
|
|
|