| OLD | NEW |
| 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="76dp" |
| 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 Loading... |
| 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 <FrameLayout |
| 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_horizontal" |
| 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:textColor="@color/fre_light_text_color" |
| 98 android:textSize="@dimen/fre_normal_text_size" |
| 99 android:visibility="invisible"/> |
| 100 |
| 101 </FrameLayout> |
| 102 |
| 78 </LinearLayout> | 103 </LinearLayout> |
| 79 </LinearLayout> | 104 </LinearLayout> |
| 80 </LinearLayout> | 105 </LinearLayout> |
| 81 </ScrollView> | 106 </ScrollView> |
| 82 | 107 |
| 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 | 108 <LinearLayout |
| 89 android:id="@+id/button_bar" | 109 android:id="@+id/button_bar" |
| 90 android:layout_width="match_parent" | 110 android:layout_width="match_parent" |
| 91 android:layout_height="56dp" | 111 android:layout_height="76dp" |
| 92 android:layout_gravity="bottom" | 112 android:layout_gravity="bottom" |
| 93 android:orientation="horizontal" > | 113 android:orientation="horizontal" |
| 114 android:padding="@dimen/fre_button_padding" > |
| 94 | 115 |
| 95 <!--suppress ButtonStyle --> | 116 <!--suppress ButtonStyle --> |
| 96 <Button | 117 <Button |
| 97 android:id="@+id/negative_button" | 118 android:id="@+id/negative_button" |
| 98 android:layout_width="0dp" | 119 android:layout_width="wrap_content" |
| 99 android:layout_height="match_parent" | 120 android:layout_height="wrap_content" |
| 100 android:layout_weight="1" | |
| 101 android:background="?attr/listChoiceBackgroundIndicator" | 121 android:background="?attr/listChoiceBackgroundIndicator" |
| 102 android:gravity="start|center_vertical" | |
| 103 android:textDirection="locale" | |
| 104 android:paddingStart="@dimen/fre_button_padding" | 122 android:paddingStart="@dimen/fre_button_padding" |
| 105 android:paddingEnd="@dimen/fre_button_padding" | 123 android:paddingEnd="@dimen/fre_button_padding" |
| 106 android:text="@string/fre_skip_text" | 124 android:text="@string/fre_skip_text" |
| 107 android:textAllCaps="true" | 125 android:textAllCaps="true" |
| 108 android:textColor="@color/light_normal_color" | 126 android:textColor="@color/light_normal_color" |
| 127 android:textDirection="locale" |
| 109 android:textSize="@dimen/fre_button_text_size" /> | 128 android:textSize="@dimen/fre_button_text_size" /> |
| 110 | 129 |
| 130 <View |
| 131 android:layout_width="0dp" |
| 132 android:layout_height="0dp" |
| 133 android:layout_weight="1" |
| 134 android:visibility="invisible"/> |
| 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_end_padding" |
| 152 android:layout_width="0dp" |
| 153 android:layout_height="0dp" |
| 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> |
| OLD | NEW |