Roll src/third_party/WebKit 3529d49:06e8485 (svn 202554:202555)
[chromium-blink-merge.git] / chrome / android / java / res / layout / contextual_search_opt_out_promo.xml
blob3d8c17d35e6a891bf3a6315b0b04be0d340f72ab
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3      Use of this source code is governed by a BSD-style license that can be
4      found in the LICENSE file. -->
6 <org.chromium.chrome.browser.compositor.bottombar.contextualsearch.ContextualSearchOptOutPromo
7     xmlns:android="http://schemas.android.com/apk/res/android"
8     xmlns:chrome="http://schemas.android.com/apk/res-auto"
9     android:id="@+id/contextual_search_opt_out_promo"
10     android:layout_width="match_parent"
11     android:layout_height="wrap_content"
12     android:background="@drawable/contextual_search_promo_background"
13     android:orientation="vertical">
15     <!-- marginTop = 16dp - 9dp (margin above) -->
16     <org.chromium.ui.widget.TextViewWithClickableSpans
17         android:id="@+id/contextual_search_opt_out_text"
18         android:color="@color/contextual_search_promo_text_color"
19         android:layout_alignParentTop="true"
20         android:layout_alignParentStart="true"
21         android:layout_alignParentEnd="true"
22         android:layout_width="match_parent"
23         android:layout_height="wrap_content"
24         android:layout_marginTop="7dp"
25         android:layout_marginStart="16dp"
26         android:layout_marginEnd="16dp"
27         android:bufferType="spannable"
28         android:textSize="16sp" />
30     <org.chromium.ui.widget.ButtonCompat
31         android:id="@+id/contextual_search_got_it_button"
32         android:layout_below="@id/contextual_search_opt_out_text"
33         android:layout_alignParentEnd="true"
34         android:layout_width="wrap_content"
35         android:layout_height="wrap_content"
36         android:layout_gravity="end"
37         android:layout_marginTop="16dp"
38         android:layout_marginEnd="16dp"
39         android:fontFamily="sans-serif-medium"
40         android:paddingStart="8dp"
41         android:paddingEnd="8dp"
42         android:text="@string/contextual_search_got_it_button"
43         android:textAllCaps="true"
44         android:textColor="#FFF"
45         android:textSize="14sp"
46         chrome:buttonColor="#4285F4" />
48     <Button
49         android:id="@+id/contextual_search_no_thanks_button"
50         android:layout_below="@id/contextual_search_opt_out_text"
51         android:layout_toStartOf="@id/contextual_search_got_it_button"
52         android:layout_width="wrap_content"
53         android:layout_height="wrap_content"
54         android:layout_gravity="end"
55         android:layout_marginTop="16dp"
56         android:layout_marginEnd="16dp"
57         android:fontFamily="sans-serif-medium"
58         android:paddingStart="8dp"
59         android:paddingEnd="8dp"
60         android:text="@string/contextual_search_no_thanks_button"
61         android:textAllCaps="true"
62         android:textColor="@color/light_active_color"
63         android:textSize="14sp"
64         style="@style/ButtonCompatBorderless" />
66     <View
67         android:layout_below="@id/contextual_search_got_it_button"
68         android:layout_width="match_parent"
69         android:layout_height="1px"
70         android:layout_marginTop="16dp"
71         android:background="#c2c2c2" />
73 </org.chromium.chrome.browser.compositor.bottombar.contextualsearch.ContextualSearchOptOutPromo>