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.widget.PaddedFrameLayout
7 xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:chrome="http://schemas.android.com/apk/res-auto"
9 android:background="#c000"
10 chrome:maxChildWidth="@dimen/data_reduction_promo_screen_width"
11 chrome:maxChildHeight="@dimen/data_reduction_promo_screen_height">
13 android:layout_height="match_parent"
14 android:layout_width="match_parent"
15 android:fillViewport="true">
17 android:id="@+id/front_layout"
18 android:background="#FFFF"
19 android:layout_height="wrap_content"
20 android:layout_width="match_parent">
22 <org.chromium.chrome.browser.widget.TintedImageButton
23 android:id="@+id/close_button_front"
24 android:layout_width="56dp"
25 android:layout_height="56dp"
26 android:layout_alignParentEnd="true"
27 android:layout_alignParentTop="true"
28 android:background="?android:attr/selectableItemBackground"
29 android:src="@drawable/btn_close"
30 android:contentDescription="@string/close" />
33 android:id="@+id/google_icon"
34 android:layout_alignParentTop="true"
35 android:layout_height="wrap_content"
36 android:layout_marginStart="20dp"
37 android:layout_marginTop="20dp"
38 android:layout_width="wrap_content"
39 android:src="@drawable/product_logo_name"
40 android:contentDescription="@null" />
42 android:id="@+id/data_reduction_invitation_text"
43 android:layout_below="@+id/google_icon"
44 android:layout_height="wrap_content"
45 android:layout_marginTop="35dp"
46 android:layout_width="match_parent"
47 android:orientation="vertical"
48 android:paddingStart="20dp"
49 android:paddingEnd="20dp">
51 android:gravity="center"
52 android:layout_height="wrap_content"
53 android:layout_width="match_parent"
54 android:text="@string/data_reduction_title_1"
55 android:textColor="#000"
56 android:textSize="28sp" />
57 <org.chromium.ui.widget.TextViewWithClickableSpans
58 android:id="@+id/data_reduction_title_2_link"
59 android:gravity="center"
60 android:layout_height="wrap_content"
61 android:layout_marginTop="20dp"
62 android:layout_width="match_parent"
63 android:lineSpacingExtra="20sp"
64 android:lineSpacingMultiplier="0"
65 android:textColor="#333"
66 android:textColorLink="#27b4e7"
67 android:textSize="16sp" />
69 android:gravity="center"
70 android:layout_height="wrap_content"
71 android:layout_marginTop="20dp"
72 android:layout_width="match_parent"
73 android:lineSpacingExtra="20sp"
74 android:lineSpacingMultiplier="0"
75 android:text="@string/data_reduction_title_3"
76 android:textColor="#333"
77 android:textSize="16sp" />
80 android:layout_alignParentBottom="true"
81 android:layout_height="198dp"
82 android:layout_width="@dimen/data_reduction_promo_screen_width"
83 android:scaleType="matrix"
84 android:adjustViewBounds="true"
85 android:src="@drawable/graph_illustration"
86 android:contentDescription="@null" />
88 android:layout_below="@+id/data_reduction_invitation_text"
89 android:layout_height="wrap_content"
90 android:layout_marginTop="24dp"
91 android:layout_width="match_parent"
92 android:clipToPadding="false"
93 android:orientation="vertical"
94 android:paddingStart="40dp"
95 android:paddingEnd="40dp"
96 android:paddingBottom="24dp" >
97 <org.chromium.ui.widget.ButtonCompat
98 android:id="@+id/enable_button_front"
99 android:layout_width="match_parent"
100 android:layout_height="wrap_content"
101 android:minHeight="48dp"
102 android:text="@string/data_reduction_enable_button"
103 android:textColor="#fff"
104 chrome:buttonColor="#27b4e7" />
105 <org.chromium.ui.widget.ButtonCompat
106 android:id="@+id/no_thanks_button"
107 android:layout_width="match_parent"
108 android:layout_height="wrap_content"
109 android:layout_marginTop="10dp"
110 android:minHeight="48dp"
111 android:text="@string/no_thanks"
112 android:textColor="#666"
113 chrome:buttonColor="@color/default_primary_color" />
117 </org.chromium.chrome.browser.widget.PaddedFrameLayout>