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

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

Issue 1574273002: Unify and Improve the Sign-In and Sync Confirmation Screens on Clank. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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.AccountFirstRunView 7 <org.chromium.chrome.browser.firstrun.AccountFirstRunView
8 xmlns:android="http://schemas.android.com/apk/res/android" 8 xmlns:android="http://schemas.android.com/apk/res/android"
9 android:id="@+id/fre_account_layout" 9 android:id="@+id/fre_account_layout"
10 android:layout_width="match_parent" 10 android:layout_width="match_parent"
11 android:layout_height="match_parent" > 11 android:layout_height="match_parent" >
12 12
13 <ScrollView 13 <ScrollView
14 android:layout_width="match_parent" 14 android:layout_width="match_parent"
15 android:layout_height="match_parent" 15 android:layout_height="match_parent"
16 android:layout_marginBottom="57dp" 16 android:layout_marginBottom="57dp"
newt (away) 2016/02/03 17:57:29 don't you need to change this to 76dp? (so it does
PEConn 2016/02/04 19:26:09 Done.
17 android:fillViewport="true" 17 android:fillViewport="true"
18 android:scrollbarStyle="outsideOverlay" > 18 android:scrollbarStyle="outsideOverlay" >
19 19
20 <LinearLayout 20 <LinearLayout
21 android:id="@+id/fre_account_linear_layout" 21 android:id="@+id/fre_account_linear_layout"
22 android:layout_width="match_parent" 22 android:layout_width="match_parent"
23 android:layout_height="wrap_content" 23 android:layout_height="wrap_content"
24 android:gravity="center" 24 android:gravity="center"
25 android:orientation="vertical" > 25 android:orientation="vertical" >
26 26
(...skipping 25 matching lines...) Expand all
52 <LinearLayout 52 <LinearLayout
53 android:layout_width="match_parent" 53 android:layout_width="match_parent"
54 android:layout_height="wrap_content" 54 android:layout_height="wrap_content"
55 android:layout_marginBottom="@dimen/fre_margin" 55 android:layout_marginBottom="@dimen/fre_margin"
56 android:orientation="vertical" 56 android:orientation="vertical"
57 android:gravity="center_horizontal" 57 android:gravity="center_horizontal"
58 android:paddingEnd="24dp" 58 android:paddingEnd="24dp"
59 android:paddingStart="24dp" > 59 android:paddingStart="24dp" >
60 60
61 <Spinner 61 <Spinner
62 style="@style/Widget.AppCompat.Spinner.Underlined"
62 android:id="@+id/google_accounts_spinner" 63 android:id="@+id/google_accounts_spinner"
63 android:layout_width="wrap_content" 64 android:layout_width="wrap_content"
64 android:layout_height="wrap_content" 65 android:layout_height="wrap_content"
65 android:layout_marginBottom="@dimen/fre_margin" 66 android:layout_marginBottom="@dimen/fre_margin"
66 android:padding="0dp" 67 android:padding="0dp"
67 android:textColor="@color/fre_text_color" /> 68 android:textColor="@color/fre_text_color" />
68 69
69 <TextView 70
70 android:id="@+id/description" 71 <RelativeLayout
newt (away) 2016/02/03 17:57:28 Use a FrameLayout here. It's simpler than Relative
PEConn 2016/02/04 19:26:09 Done.
71 android:layout_width="match_parent" 72 android:layout_width="wrap_content"
72 android:layout_height="wrap_content" 73 android:layout_height="wrap_content">
73 android:gravity="center" 74
74 android:lineSpacingMultiplier="1.4" 75 <org.chromium.ui.widget.TextViewWithClickableSpans
75 android:text="@string/fre_account_choice_description" 76 android:id="@+id/description"
76 android:textColor="@color/fre_light_text_color" 77 android:layout_width="match_parent"
77 android:textSize="@dimen/fre_normal_text_size" /> 78 android:layout_height="wrap_content"
79 android:gravity="center"
newt (away) 2016/02/03 17:57:28 center_horizontal
PEConn 2016/02/04 19:26:09 Done.
80 android:lineSpacingMultiplier="1.4"
81 android:text="@string/fre_account_choice_description "
82 android:textColor="@color/fre_light_text_color"
83 android:textSize="@dimen/fre_normal_text_size"
84 android:visibility="visible"/>
85
86 <!-- We use an invisible TextView overlapping with the v isible one to keep
newt (away) 2016/02/03 17:57:29 How does this look in landscape mode on phones? Do
PEConn 2016/02/04 19:26:09 There isn't that much unused space - its essential
87 the layout constant between text changes. This TextView will have its
88 contents programmatically set to the longest string the above TextView can
89 contain. -->
90
91 <org.chromium.ui.widget.TextViewWithClickableSpans
92 android:id="@+id/longest_description"
93 android:layout_width="match_parent"
94 android:layout_height="wrap_content"
95 android:gravity="center"
96 android:lineSpacingMultiplier="1.4"
97 android:text=""
newt (away) 2016/02/03 17:57:29 omit this
PEConn 2016/02/04 19:26:09 Done.
98 android:textColor="@color/fre_light_text_color"
99 android:textSize="@dimen/fre_normal_text_size"
100 android:visibility="invisible"/>
101
102 </RelativeLayout>
103
78 </LinearLayout> 104 </LinearLayout>
79 </LinearLayout> 105 </LinearLayout>
80 </LinearLayout> 106 </LinearLayout>
81 </ScrollView> 107 </ScrollView>
82 108
83 <View android:id="@+id/button_bar_separator"
84 style="@style/ButtonBarTopDivider"
85 android:layout_gravity="bottom"
86 android:layout_marginBottom="56dp" />
87
88 <LinearLayout 109 <LinearLayout
89 android:id="@+id/button_bar" 110 android:id="@+id/button_bar"
90 android:layout_width="match_parent" 111 android:layout_width="match_parent"
91 android:layout_height="56dp" 112 android:layout_height="76dp"
92 android:layout_gravity="bottom" 113 android:layout_gravity="bottom"
93 android:orientation="horizontal" > 114 android:orientation="horizontal"
115 android:padding="@dimen/fre_button_padding" >
94 116
95 <!--suppress ButtonStyle --> 117 <!--suppress ButtonStyle -->
96 <Button 118 <Button
97 android:id="@+id/negative_button" 119 android:id="@+id/negative_button"
98 android:layout_width="0dp" 120 android:layout_width="wrap_content"
99 android:layout_height="match_parent" 121 android:layout_height="wrap_content"
100 android:layout_weight="1"
101 android:background="?attr/listChoiceBackgroundIndicator" 122 android:background="?attr/listChoiceBackgroundIndicator"
102 android:gravity="start|center_vertical"
103 android:textDirection="locale"
104 android:paddingStart="@dimen/fre_button_padding" 123 android:paddingStart="@dimen/fre_button_padding"
105 android:paddingEnd="@dimen/fre_button_padding" 124 android:paddingEnd="@dimen/fre_button_padding"
106 android:text="@string/fre_skip_text" 125 android:text="@string/fre_skip_text"
107 android:textAllCaps="true" 126 android:textAllCaps="true"
108 android:textColor="@color/light_normal_color" 127 android:textColor="@color/light_normal_color"
128 android:textDirection="locale"
109 android:textSize="@dimen/fre_button_text_size" /> 129 android:textSize="@dimen/fre_button_text_size" />
110 130
131 <View
newt (away) 2016/02/03 17:57:29 set the visibility to invisible, which is slightly
PEConn 2016/02/04 19:26:09 Done.
132 android:layout_width="match_parent"
newt (away) 2016/02/03 17:57:28 layout_width should be 0dp. That makes for more ef
PEConn 2016/02/04 19:26:09 Done.
133 android:layout_height="match_parent"
newt (away) 2016/02/03 17:57:29 might as well be 0dp
PEConn 2016/02/04 19:26:09 Done.
134 android:layout_weight="1" />
135
111 <!--suppress ButtonStyle --> 136 <!--suppress ButtonStyle -->
112 <Button 137 <Button
113 android:id="@+id/positive_button" 138 android:id="@+id/positive_button"
114 android:layout_width="0dp" 139 android:layout_width="wrap_content"
115 android:layout_height="match_parent" 140 android:layout_height="wrap_content"
116 android:layout_weight="1" 141 android:background="@color/light_active_color"
117 android:background="?attr/listChoiceBackgroundIndicator"
118 android:gravity="end|center_vertical"
119 android:textDirection="locale"
120 android:paddingStart="@dimen/fre_button_padding" 142 android:paddingStart="@dimen/fre_button_padding"
121 android:paddingEnd="@dimen/fre_button_padding" 143 android:paddingEnd="@dimen/fre_button_padding"
122 android:text="@string/choose_account_sign_in" 144 android:text="@string/choose_account_sign_in"
123 android:textAllCaps="true" 145 android:textAllCaps="true"
124 android:textColor="@color/light_active_color" 146 android:textColor="@android:color/background_light"
147 android:textDirection="locale"
125 android:textSize="@dimen/fre_button_text_size" /> 148 android:textSize="@dimen/fre_button_text_size" />
149
150 <View
151 android:id="@+id/positive_button_right_padding"
newt (away) 2016/02/03 17:57:28 s/right/end/ In RTL mode, this will be the left p
PEConn 2016/02/04 19:26:09 Done.
152 android:layout_width="match_parent"
newt (away) 2016/02/03 17:57:29 0dp
PEConn 2016/02/04 19:26:09 Done.
153 android:layout_height="match_parent"
newt (away) 2016/02/03 17:57:28 0dp
PEConn 2016/02/04 19:26:09 Done.
154 android:layout_weight="1"
155 android:visibility="gone"/>
126 </LinearLayout> 156 </LinearLayout>
127 157
128 </org.chromium.chrome.browser.firstrun.AccountFirstRunView> 158 </org.chromium.chrome.browser.firstrun.AccountFirstRunView>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698