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="40dp"
49 android:paddingEnd="40dp">
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="30sp" />
58 android:gravity="center"
59 android:layout_height="wrap_content"
60 android:layout_marginTop="20dp"
61 android:layout_width="match_parent"
62 android:lineSpacingExtra="20dp"
63 android:lineSpacingMultiplier="0"
64 android:paddingStart="20dp"
65 android:paddingEnd="20dp"
66 android:text="@string/data_reduction_title_2"
67 android:textColor="#969696"
68 android:textSize="16sp" />
70 android:gravity="center"
71 android:layout_height="wrap_content"
72 android:layout_marginTop="20dp"
73 android:layout_width="match_parent"
74 android:lineSpacingExtra="25dp"
75 android:lineSpacingMultiplier="0"
76 android:text="@string/data_reduction_title_3"
77 android:textColor="#000"
78 android:textSize="20sp" />
81 android:layout_alignParentBottom="true"
82 android:layout_height="198dp"
83 android:layout_width="@dimen/data_reduction_promo_screen_width"
84 android:scaleType="matrix"
85 android:adjustViewBounds="true"
86 android:src="@drawable/graph_illustration"
87 android:contentDescription="@null" />
89 android:layout_below="@+id/data_reduction_invitation_text"
90 android:layout_height="wrap_content"
91 android:layout_marginTop="24dp"
92 android:layout_width="match_parent"
93 android:clipToPadding="false"
94 android:orientation="vertical"
95 android:paddingStart="40dp"
96 android:paddingEnd="40dp"
97 android:paddingBottom="24dp" >
98 <org.chromium.chrome.browser.widget.ButtonCompat
99 android:id="@+id/enable_button_front"
100 android:layout_width="match_parent"
101 android:layout_height="wrap_content"
102 android:minHeight="48dp"
103 android:text="@string/data_reduction_enable_button"
104 android:textColor="#fff"
105 chrome:buttonColor="#27b4e7" />
106 <org.chromium.chrome.browser.widget.ButtonCompat
107 android:id="@+id/no_thanks_button"
108 android:layout_width="match_parent"
109 android:layout_height="wrap_content"
110 android:layout_marginTop="10dp"
111 android:minHeight="48dp"
112 android:text="@string/no_thanks"
113 android:textColor="#666"
114 chrome:buttonColor="@color/default_primary_color" />
118 </org.chromium.chrome.browser.widget.PaddedFrameLayout>