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

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, 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
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"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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"
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
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=""
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" 109 <View android:id="@+id/button_bar_separator"
84 style="@style/ButtonBarTopDivider" 110 style="@style/ButtonBarTopDivider"
85 android:layout_gravity="bottom" 111 android:layout_gravity="bottom"
86 android:layout_marginBottom="56dp" /> 112 android:layout_marginBottom="76dp" />
87 113
88 <LinearLayout 114 <LinearLayout
89 android:id="@+id/button_bar" 115 android:id="@+id/button_bar"
90 android:layout_width="match_parent" 116 android:layout_width="match_parent"
91 android:layout_height="56dp" 117 android:layout_height="76dp"
92 android:layout_gravity="bottom" 118 android:layout_gravity="bottom"
93 android:orientation="horizontal" > 119 android:orientation="horizontal"
120 android:padding="@dimen/fre_button_padding" >
94 121
95 <!--suppress ButtonStyle --> 122 <!--suppress ButtonStyle -->
96 <Button 123 <Button
97 android:id="@+id/negative_button" 124 android:id="@+id/negative_button"
98 android:layout_width="0dp" 125 android:layout_width="wrap_content"
99 android:layout_height="match_parent" 126 android:layout_height="wrap_content"
100 android:layout_weight="1"
101 android:background="?attr/listChoiceBackgroundIndicator" 127 android:background="?attr/listChoiceBackgroundIndicator"
102 android:gravity="start|center_vertical"
103 android:textDirection="locale"
104 android:paddingStart="@dimen/fre_button_padding" 128 android:paddingStart="@dimen/fre_button_padding"
105 android:paddingEnd="@dimen/fre_button_padding" 129 android:paddingEnd="@dimen/fre_button_padding"
106 android:text="@string/fre_skip_text" 130 android:text="@string/fre_skip_text"
107 android:textAllCaps="true" 131 android:textAllCaps="true"
108 android:textColor="@color/light_normal_color" 132 android:textColor="@color/light_normal_color"
133 android:textDirection="locale"
109 android:textSize="@dimen/fre_button_text_size" /> 134 android:textSize="@dimen/fre_button_text_size" />
110 135
136 <View
137 android:layout_width="match_parent"
138 android:layout_height="match_parent"
139 android:layout_weight="1" />
140
111 <!--suppress ButtonStyle --> 141 <!--suppress ButtonStyle -->
112 <Button 142 <Button
113 android:id="@+id/positive_button" 143 android:id="@+id/positive_button"
114 android:layout_width="0dp" 144 android:layout_width="wrap_content"
115 android:layout_height="match_parent" 145 android:layout_height="wrap_content"
116 android:layout_weight="1" 146 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" 147 android:paddingStart="@dimen/fre_button_padding"
121 android:paddingEnd="@dimen/fre_button_padding" 148 android:paddingEnd="@dimen/fre_button_padding"
122 android:text="@string/choose_account_sign_in" 149 android:text="@string/choose_account_sign_in"
123 android:textAllCaps="true" 150 android:textAllCaps="true"
124 android:textColor="@color/light_active_color" 151 android:textColor="@android:color/background_light"
152 android:textDirection="locale"
125 android:textSize="@dimen/fre_button_text_size" /> 153 android:textSize="@dimen/fre_button_text_size" />
154
155 <View
156 android:id="@+id/positive_button_right_padding"
157 android:layout_width="match_parent"
158 android:layout_height="match_parent"
159 android:layout_weight="1"
160 android:visibility="gone"/>
126 </LinearLayout> 161 </LinearLayout>
127 162
128 </org.chromium.chrome.browser.firstrun.AccountFirstRunView> 163 </org.chromium.chrome.browser.firstrun.AccountFirstRunView>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698