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:maxChildHeight="@dimen/data_reduction_promo_screen_height"
11 chrome:maxChildWidth="@dimen/data_reduction_promo_screen_width">
14 android:layout_height="wrap_content"
15 android:layout_width="match_parent"
16 android:layout_gravity="center"
17 android:fillViewport="true">
20 android:layout_height="wrap_content"
21 android:layout_width="match_parent"
22 android:background="#FFFF" >
24 <org.chromium.chrome.browser.widget.TintedImageButton
25 android:id="@+id/close_button"
26 android:layout_height="56dp"
27 android:layout_width="56dp"
28 android:layout_alignParentEnd="true"
29 android:layout_alignParentTop="true"
30 android:background="?android:attr/selectableItemBackground"
31 android:contentDescription="@string/close"
32 android:src="@drawable/btn_close" />
35 android:id="@+id/data_reduction_promo_text"
36 android:layout_height="wrap_content"
37 android:layout_width="match_parent"
38 android:layout_below="@+id/close_button"
39 android:layout_marginBottom="30dp"
40 android:layout_marginTop="8dp"
41 android:orientation="vertical"
42 android:paddingEnd="24dp"
43 android:paddingStart="24dp" >
46 android:layout_height="wrap_content"
47 android:layout_width="wrap_content"
48 android:layout_gravity="center_horizontal"
49 android:layout_marginBottom="@dimen/data_reduction_promo_illustration_margin_bottom"
50 android:adjustViewBounds="true"
51 android:contentDescription="@null"
52 android:src="@drawable/data_reduction_illustration" />
55 android:layout_height="wrap_content"
56 android:layout_width="match_parent"
57 android:layout_marginBottom="8dp"
58 android:text="@string/data_reduction_promo_title"
59 android:textColor="@color/default_text_color"
60 android:textSize="@dimen/data_reduction_promo_title_text_size" />
63 android:layout_height="wrap_content"
64 android:layout_width="match_parent"
65 android:lineSpacingMultiplier="1.3"
66 android:text="@string/data_reduction_promo_summary"
67 android:textColor="#646464"
68 android:textSize="@dimen/data_reduction_promo_normal_text_size" />
72 android:layout_height="wrap_content"
73 android:layout_width="match_parent"
74 android:layout_below="@id/data_reduction_promo_text"
75 android:layout_gravity="bottom"
76 android:orientation="horizontal"
77 android:clipToPadding="false"
78 android:padding="16dp"
79 android:gravity="end" >
82 android:id="@+id/no_thanks_button"
83 android:layout_height="match_parent"
84 android:layout_width="wrap_content"
85 android:layout_marginEnd="8dp"
86 android:minHeight="40dp"
87 android:text="@string/no_thanks"
88 android:textColor="@color/light_normal_color"
89 android:textSize="@dimen/data_reduction_promo_button_text_size"
90 style="@style/ButtonCompatBorderless" />
92 <org.chromium.ui.widget.ButtonCompat
93 android:id="@+id/enable_button"
94 android:layout_height="match_parent"
95 android:layout_width="wrap_content"
96 android:elevation="0dp"
97 android:minHeight="40dp"
98 android:text="@string/data_reduction_enable_button"
99 android:textColor="#FFFFFF"
100 android:textSize="@dimen/data_reduction_promo_button_text_size"
101 chrome:buttonColor="@color/light_active_color" />
105 </org.chromium.chrome.browser.widget.PaddedFrameLayout>