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

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

Issue 1562733003: Make the Data Saver Promo buttons always visible at the bottom of the promo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whoops Created 4 years, 11 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/FirstRunFlowSequencer.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 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 5
6 <org.chromium.chrome.browser.preferences.datareduction.DataReductionPromoView 6 <org.chromium.chrome.browser.preferences.datareduction.DataReductionPromoView
7 xmlns:android="http://schemas.android.com/apk/res/android" 7 xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:chrome="http://schemas.android.com/apk/res-auto" 8 xmlns:chrome="http://schemas.android.com/apk/res-auto"
9 android:background="#c000" > 9 android:background="#c000" >
10 10
11 <ScrollView 11 <RelativeLayout
12 android:layout_height="wrap_content" 12 android:layout_height="wrap_content"
13 android:layout_width="match_parent" 13 android:layout_width="match_parent"
14 android:layout_gravity="center" 14 android:layout_gravity="center"
15 android:fillViewport="true"> 15 android:background="#FFFF" >
16 16
17 <RelativeLayout 17 <LinearLayout
18 android:layout_height="wrap_content" 18 android:layout_height="wrap_content"
19 android:layout_width="match_parent" 19 android:layout_width="match_parent"
20 android:background="#FFFF" > 20 android:layout_alignParentTop="true"
21 android:orientation="vertical" >
21 22
22 <org.chromium.chrome.browser.widget.TintedImageButton 23 <ScrollView
23 android:id="@+id/close_button" 24 android:id="@+id/data_reduction_promo_scroll"
24 android:layout_height="56dp" 25 android:layout_height="0dp"
25 android:layout_width="56dp" 26 android:layout_width="match_parent"
26 android:layout_alignParentEnd="true" 27 android:layout_weight="1"
27 android:layout_alignParentTop="true" 28 android:fillViewport="true"
28 android:background="?android:attr/selectableItemBackground" 29 android:requiresFadingEdge="vertical"
29 android:contentDescription="@string/close" 30 android:fadingEdgeLength="20dp" >
30 android:src="@drawable/btn_close" /> 31
32 <LinearLayout
33 android:id="@+id/data_reduction_promo_content"
34 android:layout_height="wrap_content"
35 android:layout_width="match_parent"
36 android:paddingEnd="24dp"
37 android:paddingStart="24dp"
38 android:paddingTop="64dp" >
39
40 <ImageView
41 android:id="@+id/data_reduction_illustration"
42 android:layout_height="wrap_content"
43 android:layout_width="wrap_content"
44 android:layout_gravity="center"
45 android:adjustViewBounds="true"
46 android:contentDescription="@null"
47 android:src="@drawable/data_reduction_illustration" />
48
49 <LinearLayout
50 android:id="@+id/text_wrapper"
51 android:layout_height="wrap_content"
52 android:layout_width="wrap_content"
53 android:orientation="vertical" >
54
55 <TextView
56 android:layout_height="wrap_content"
57 android:layout_width="match_parent"
58 android:layout_marginBottom="8dp"
59 android:text="@string/data_reduction_promo_title"
60 android:textColor="@color/default_text_color"
61 android:textSize="@dimen/data_reduction_promo_title_ text_size" />
62
63 <TextView
64 android:layout_height="wrap_content"
65 android:layout_width="match_parent"
66 android:layout_marginBottom="30dp"
67 android:lineSpacingMultiplier="1.3"
68 android:text="@string/data_reduction_promo_summary"
69 android:textColor="#646464"
70 android:textSize="@dimen/data_reduction_promo_normal _text_size" />
71 </LinearLayout>
72 </LinearLayout>
73 </ScrollView>
31 74
32 <LinearLayout 75 <LinearLayout
33 android:id="@+id/data_reduction_promo_content" 76 android:id="@+id/data_reduction_promo_buttons"
34 android:layout_height="wrap_content" 77 android:layout_height="wrap_content"
35 android:layout_width="match_parent" 78 android:layout_width="match_parent"
36 android:layout_below="@+id/close_button"
37 android:layout_marginTop="8dp"
38 android:paddingEnd="24dp"
39 android:paddingStart="24dp" >
40
41 <ImageView
42 android:id="@+id/data_reduction_illustration"
43 android:layout_height="wrap_content"
44 android:layout_width="wrap_content"
45 android:layout_gravity="center"
46 android:adjustViewBounds="true"
47 android:contentDescription="@null"
48 android:src="@drawable/data_reduction_illustration" />
49
50 <LinearLayout
51 android:id="@+id/text_wrapper"
52 android:layout_height="wrap_content"
53 android:layout_width="wrap_content"
54 android:orientation="vertical" >
55
56 <TextView
57 android:layout_height="wrap_content"
58 android:layout_width="match_parent"
59 android:layout_marginBottom="8dp"
60 android:text="@string/data_reduction_promo_title"
61 android:textColor="@color/default_text_color"
62 android:textSize="@dimen/data_reduction_promo_title_text _size" />
63
64 <TextView
65 android:layout_height="wrap_content"
66 android:layout_width="match_parent"
67 android:layout_marginBottom="30dp"
68 android:lineSpacingMultiplier="1.3"
69 android:text="@string/data_reduction_promo_summary"
70 android:textColor="#646464"
71 android:textSize="@dimen/data_reduction_promo_normal_tex t_size" />
72 </LinearLayout>
73 </LinearLayout>
74
75 <LinearLayout
76 android:layout_height="wrap_content"
77 android:layout_width="match_parent"
78 android:layout_below="@id/data_reduction_promo_content"
79 android:layout_gravity="bottom"
80 android:orientation="horizontal" 79 android:orientation="horizontal"
81 android:clipToPadding="false" 80 android:clipToPadding="false"
82 android:padding="16dp" 81 android:padding="16dp"
83 android:gravity="end" > 82 android:gravity="end" >
84 83
85 <Button 84 <Button
86 android:id="@+id/no_thanks_button" 85 android:id="@+id/no_thanks_button"
87 android:layout_height="match_parent" 86 android:layout_height="match_parent"
88 android:layout_width="wrap_content" 87 android:layout_width="wrap_content"
89 android:layout_marginEnd="8dp" 88 android:layout_marginEnd="8dp"
90 android:minHeight="40dp" 89 android:minHeight="40dp"
91 android:text="@string/no_thanks" 90 android:text="@string/no_thanks"
92 android:textColor="@color/light_normal_color" 91 android:textColor="@color/light_normal_color"
93 android:textSize="@dimen/data_reduction_promo_button_text_si ze" 92 android:textSize="@dimen/data_reduction_promo_button_text_si ze"
94 style="@style/ButtonCompatBorderless" /> 93 style="@style/ButtonCompatBorderless" />
95 94
96 <org.chromium.ui.widget.ButtonCompat 95 <org.chromium.ui.widget.ButtonCompat
97 android:id="@+id/enable_button" 96 android:id="@+id/enable_button"
98 android:layout_height="match_parent" 97 android:layout_height="match_parent"
99 android:layout_width="wrap_content" 98 android:layout_width="wrap_content"
100 android:elevation="0dp" 99 android:elevation="0dp"
101 android:minHeight="40dp" 100 android:minHeight="40dp"
102 android:text="@string/data_reduction_enable_button" 101 android:text="@string/data_reduction_enable_button"
103 android:textColor="#FFFFFF" 102 android:textColor="#FFFFFF"
104 android:textSize="@dimen/data_reduction_promo_button_text_si ze" 103 android:textSize="@dimen/data_reduction_promo_button_text_si ze"
105 chrome:buttonColor="@color/light_active_color" /> 104 chrome:buttonColor="@color/light_active_color" />
106 </LinearLayout> 105 </LinearLayout>
107 </RelativeLayout> 106 </LinearLayout>
108 </ScrollView> 107
108 <org.chromium.chrome.browser.widget.TintedImageButton
109 android:id="@+id/close_button"
110 android:layout_height="56dp"
111 android:layout_width="56dp"
112 android:layout_alignParentEnd="true"
113 android:layout_alignParentTop="true"
114 android:background="?android:attr/selectableItemBackground"
115 android:contentDescription="@string/close"
116 android:src="@drawable/btn_close" />
117
118 </RelativeLayout>
109 </org.chromium.chrome.browser.preferences.datareduction.DataReductionPromoView> 119 </org.chromium.chrome.browser.preferences.datareduction.DataReductionPromoView>
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunFlowSequencer.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698