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

Side by Side Diff: chrome/android/java/res/layout/fre_data_reduction_proxy.xml

Issue 1339613004: Add Data Reduction Proxy card to Clank FRE in EM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/firstrun/DataReductionProxyFirstRunFragment.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3 3
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <org.chromium.chrome.browser.firstrun.TosAndUmaView 7 <org.chromium.chrome.browser.firstrun.DataReductionProxyView
8 xmlns:android="http://schemas.android.com/apk/res/android" 8 xmlns:android="http://schemas.android.com/apk/res/android"
9 android:layout_width="match_parent" 9 android:layout_width="match_parent"
10 android:layout_height="match_parent" > 10 android:layout_height="match_parent" >
11 11
12 <ScrollView 12 <ScrollView
13 android:layout_width="match_parent" 13 android:layout_width="match_parent"
14 android:layout_height="match_parent" 14 android:layout_height="match_parent"
15 android:layout_marginBottom="57dp" 15 android:layout_marginBottom="57dp"
16 android:fillViewport="true" 16 android:fillViewport="true"
17 android:scrollbarStyle="outsideOverlay" > 17 android:scrollbarStyle="outsideOverlay" >
18 18
19 <LinearLayout 19 <LinearLayout
20 android:layout_width="match_parent" 20 android:layout_width="match_parent"
21 android:layout_height="wrap_content" 21 android:layout_height="wrap_content"
22 android:gravity="center" 22 android:gravity="center"
23 android:orientation="vertical" > 23 android:orientation="vertical" >
24 24
25 <TextView 25 <TextView
26 android:layout_width="wrap_content" 26 android:layout_width="wrap_content"
27 android:layout_height="wrap_content" 27 android:layout_height="wrap_content"
28 android:layout_marginTop="@dimen/fre_margin" 28 android:layout_marginTop="@dimen/fre_margin"
29 android:gravity="center" 29 android:gravity="center"
30 android:lineSpacingMultiplier="1.4" 30 android:lineSpacingMultiplier="1.4"
31 android:text="@string/fre_welcome" 31 android:text="@string/data_reduction_promo_title"
32 android:textColor="@color/fre_title_color" 32 android:textColor="@color/fre_title_color"
33 android:textSize="@dimen/fre_title_text_size" /> 33 android:textSize="@dimen/fre_title_text_size" />
34 34
35 <LinearLayout 35 <LinearLayout
36 android:id="@+id/fre_content" 36 android:id="@+id/fre_content"
37 android:layout_width="match_parent" 37 android:layout_width="match_parent"
38 android:layout_height="wrap_content" 38 android:layout_height="wrap_content"
39 android:layout_marginTop="@dimen/fre_margin" 39 android:layout_marginTop="@dimen/fre_margin"
40 android:gravity="center_horizontal"> 40 android:gravity="center_horizontal" >
41 41
42 <ImageView 42 <ImageView
43 android:layout_width="wrap_content" 43 android:layout_width="wrap_content"
44 android:layout_height="@dimen/fre_image_carousel_height" 44 android:layout_height="@dimen/fre_image_carousel_height"
45 android:layout_marginBottom="@dimen/fre_margin" 45 android:layout_marginBottom="@dimen/fre_margin"
46 android:contentDescription="@null" 46 android:contentDescription="@null"
47 android:src="@drawable/fre_product_logo" /> 47 android:src="@drawable/data_reduction_illustration" />
48 48
49 <LinearLayout 49 <LinearLayout
50 android:id="@+id/text_wrapper" 50 android:layout_width="match_parent"
51 android:layout_width="0dp" 51 android:layout_height="wrap_content"
52 android:layout_height="0dp"
53 android:layout_weight="1"
54 android:layout_marginBottom="@dimen/fre_margin" 52 android:layout_marginBottom="@dimen/fre_margin"
55 android:orientation="vertical" 53 android:orientation="vertical"
56 android:paddingEnd="@dimen/fre_margin" 54 android:gravity="center_horizontal"
57 android:paddingStart="@dimen/fre_margin" > 55 android:paddingEnd="24dp"
56 android:paddingStart="24dp" >
58 57
59 <org.chromium.ui.widget.TextViewWithClickableSpans 58 <TextView
60 android:id="@+id/tos_and_privacy"
61 android:layout_width="wrap_content" 59 android:layout_width="wrap_content"
62 android:layout_height="wrap_content" 60 android:layout_height="wrap_content"
63 android:layout_marginBottom="@dimen/fre_margin" 61 android:layout_marginBottom="@dimen/fre_margin"
64 android:gravity="center" 62 android:gravity="start"
65 android:lineSpacingMultiplier="1.4" 63 android:lineSpacingMultiplier="1.4"
64 android:text="@string/data_reduction_promo_summary"
66 android:textColor="@color/fre_text_color" 65 android:textColor="@color/fre_text_color"
67 android:textSize="@dimen/fre_normal_text_size" /> 66 android:textSize="@dimen/fre_normal_text_size" />
68 67
69 <CheckBox 68 <Switch
70 android:id="@+id/send_report_checkbox" 69 android:id="@+id/enable_data_saver_switch"
71 android:layout_width="wrap_content" 70 android:layout_width="match_parent"
72 android:layout_height="wrap_content" 71 android:layout_height="wrap_content"
72 android:gravity="start"
73 android:lineSpacingMultiplier="1.4" 73 android:lineSpacingMultiplier="1.4"
74 android:text="@string/fre_send_report_check" 74 android:showText="false"
75 android:textOff="@string/data_reduction_disabled_switch"
76 android:text="@string/data_reduction_enabled_switch"
75 android:textColor="@color/fre_text_color" 77 android:textColor="@color/fre_text_color"
76 android:textSize="@dimen/fre_normal_text_size" /> 78 android:textSize="@dimen/fre_normal_text_size"
79 android:fontFamily="sans-serif-medium" />
77 </LinearLayout> 80 </LinearLayout>
78 </LinearLayout> 81 </LinearLayout>
79 </LinearLayout> 82 </LinearLayout>
80 </ScrollView> 83 </ScrollView>
81 84
82 <View 85 <View
83 style="@style/ButtonBarTopDivider" 86 style="@style/ButtonBarTopDivider"
84 android:layout_gravity="bottom" 87 android:layout_gravity="bottom"
85 android:layout_marginBottom="56dp" /> 88 android:layout_marginBottom="56dp" />
86 89
87 <Button 90 <Button
88 android:id="@+id/terms_accept" 91 android:id="@+id/next_button"
89 android:layout_width="match_parent" 92 android:layout_width="match_parent"
90 android:layout_height="56dp" 93 android:layout_height="56dp"
91 android:layout_gravity="bottom" 94 android:layout_gravity="bottom"
92 android:background="?attr/listChoiceBackgroundIndicator" 95 android:background="?attr/listChoiceBackgroundIndicator"
93 android:padding="16dp" 96 android:padding="16dp"
94 android:text="@string/fre_accept_continue" 97 android:text="@string/next"
95 android:textAllCaps="true" 98 android:textAllCaps="true"
96 android:textColor="@color/light_active_color" 99 android:textColor="@color/light_active_color"
97 android:textSize="@dimen/fre_button_text_size" /> 100 android:textSize="@dimen/fre_button_text_size" />
98 101
99 </org.chromium.chrome.browser.firstrun.TosAndUmaView> 102 </org.chromium.chrome.browser.firstrun.DataReductionProxyView>
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/firstrun/DataReductionProxyFirstRunFragment.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698