| OLD | NEW |
| (Empty) |
| 1 <?xml version="1.0" encoding="utf-8"?> | |
| 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. | |
| 3 | |
| 4 Use of this source code is governed by a BSD-style license that can be | |
| 5 found in the LICENSE file. | |
| 6 --> | |
| 7 <org.chromium.chrome.browser.firstrun.AccountFirstRunView | |
| 8 xmlns:android="http://schemas.android.com/apk/res/android" | |
| 9 xmlns:chrome="http://schemas.android.com/apk/res-auto" | |
| 10 android:id="@+id/fre_account_layout" | |
| 11 android:layout_width="match_parent" | |
| 12 android:layout_height="match_parent" > | |
| 13 | |
| 14 <ScrollView | |
| 15 android:layout_width="match_parent" | |
| 16 android:layout_height="match_parent" | |
| 17 android:layout_marginBottom="76dp" | |
| 18 android:fillViewport="true" | |
| 19 android:scrollbarStyle="outsideOverlay" > | |
| 20 | |
| 21 <LinearLayout | |
| 22 android:id="@+id/fre_account_linear_layout" | |
| 23 android:layout_width="match_parent" | |
| 24 android:layout_height="wrap_content" | |
| 25 android:gravity="center" | |
| 26 android:orientation="vertical" > | |
| 27 | |
| 28 <TextView | |
| 29 android:id="@+id/title" | |
| 30 android:layout_width="wrap_content" | |
| 31 android:layout_height="wrap_content" | |
| 32 android:layout_marginTop="@dimen/fre_margin" | |
| 33 android:gravity="center" | |
| 34 android:lineSpacingMultiplier="1.4" | |
| 35 android:text="@string/fre_set_up_chrome" | |
| 36 android:textColor="@color/fre_title_color" | |
| 37 android:textSize="@dimen/fre_title_text_size" /> | |
| 38 | |
| 39 <LinearLayout | |
| 40 android:id="@+id/fre_content" | |
| 41 android:layout_width="match_parent" | |
| 42 android:layout_height="wrap_content" | |
| 43 android:layout_marginTop="@dimen/fre_margin" | |
| 44 android:gravity="center_horizontal" | |
| 45 android:orientation="vertical" > | |
| 46 | |
| 47 <org.chromium.chrome.browser.firstrun.ImageCarousel | |
| 48 android:id="@+id/image_slider" | |
| 49 android:layout_width="@dimen/fre_image_carousel_width" | |
| 50 android:layout_height="@dimen/fre_image_carousel_height" | |
| 51 android:layout_marginBottom="@dimen/fre_margin"/> | |
| 52 | |
| 53 <LinearLayout | |
| 54 android:layout_width="match_parent" | |
| 55 android:layout_height="wrap_content" | |
| 56 android:layout_marginBottom="@dimen/fre_margin" | |
| 57 android:orientation="vertical" | |
| 58 android:gravity="center_horizontal" | |
| 59 android:paddingEnd="24dp" | |
| 60 android:paddingStart="24dp" > | |
| 61 | |
| 62 <Spinner | |
| 63 style="@style/Widget.AppCompat.Spinner.Underlined" | |
| 64 android:id="@+id/google_accounts_spinner" | |
| 65 android:layout_width="wrap_content" | |
| 66 android:layout_height="wrap_content" | |
| 67 android:layout_marginBottom="@dimen/fre_margin" | |
| 68 android:padding="0dp" | |
| 69 android:textColor="@color/fre_text_color" /> | |
| 70 | |
| 71 | |
| 72 <FrameLayout | |
| 73 android:layout_width="wrap_content" | |
| 74 android:layout_height="wrap_content"> | |
| 75 | |
| 76 <org.chromium.ui.widget.TextViewWithClickableSpans | |
| 77 android:id="@+id/description" | |
| 78 android:layout_width="match_parent" | |
| 79 android:layout_height="wrap_content" | |
| 80 android:gravity="center_horizontal" | |
| 81 android:lineSpacingMultiplier="1.4" | |
| 82 android:text="@string/fre_account_choice_description
" | |
| 83 android:textColor="@color/fre_light_text_color" | |
| 84 android:textSize="@dimen/fre_normal_text_size" | |
| 85 android:visibility="visible"/> | |
| 86 | |
| 87 <!-- We use an invisible TextView overlapping with the v
isible one to keep | |
| 88 the layout constant between text changes. This TextView
will have its | |
| 89 contents programmatically set to the longest string the
above TextView can | |
| 90 contain. --> | |
| 91 | |
| 92 <org.chromium.ui.widget.TextViewWithClickableSpans | |
| 93 android:id="@+id/longest_description" | |
| 94 android:layout_width="match_parent" | |
| 95 android:layout_height="wrap_content" | |
| 96 android:gravity="center" | |
| 97 android:lineSpacingMultiplier="1.4" | |
| 98 android:textColor="@color/fre_light_text_color" | |
| 99 android:textSize="@dimen/fre_normal_text_size" | |
| 100 android:visibility="invisible"/> | |
| 101 | |
| 102 </FrameLayout> | |
| 103 | |
| 104 </LinearLayout> | |
| 105 </LinearLayout> | |
| 106 </LinearLayout> | |
| 107 </ScrollView> | |
| 108 | |
| 109 <LinearLayout | |
| 110 android:id="@+id/button_bar" | |
| 111 android:layout_width="match_parent" | |
| 112 android:layout_height="76dp" | |
| 113 android:layout_gravity="bottom" | |
| 114 android:orientation="horizontal" | |
| 115 android:padding="@dimen/fre_button_padding" > | |
| 116 | |
| 117 <!--suppress ButtonStyle --> | |
| 118 <Button | |
| 119 android:id="@+id/negative_button" | |
| 120 style="@style/ButtonCompatBorderless" | |
| 121 android:layout_width="wrap_content" | |
| 122 android:layout_height="wrap_content" | |
| 123 android:text="@string/fre_skip_text" | |
| 124 android:textAllCaps="true" | |
| 125 android:textColor="@color/light_normal_color" | |
| 126 android:textSize="15sp" /> | |
| 127 | |
| 128 <View | |
| 129 android:layout_width="0dp" | |
| 130 android:layout_height="0dp" | |
| 131 android:layout_weight="1" | |
| 132 android:visibility="invisible"/> | |
| 133 | |
| 134 <!--suppress ButtonStyle --> | |
| 135 <org.chromium.ui.widget.ButtonCompat | |
| 136 android:id="@+id/positive_button" | |
| 137 android:layout_width="wrap_content" | |
| 138 android:layout_height="wrap_content" | |
| 139 android:text="@string/choose_account_sign_in" | |
| 140 android:textAllCaps="true" | |
| 141 android:textColor="@android:color/white" | |
| 142 android:textSize="15sp" | |
| 143 chrome:buttonColor="@color/light_active_color" /> | |
| 144 | |
| 145 <View | |
| 146 android:id="@+id/positive_button_end_padding" | |
| 147 android:layout_width="0dp" | |
| 148 android:layout_height="0dp" | |
| 149 android:layout_weight="1" | |
| 150 android:visibility="gone"/> | |
| 151 </LinearLayout> | |
| 152 | |
| 153 </org.chromium.chrome.browser.firstrun.AccountFirstRunView> | |
| OLD | NEW |