Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Unified Diff: chrome/android/java/res/layout/contextual_search_opt_out_promo.xml

Issue 1050163004: [Contextual Search] Implements Opt-out promo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698