Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
| 2 <!-- | 2 <!-- |
| 3 Copyright 2013 The Chromium Authors. All rights reserved. | 3 Copyright 2013 The Chromium Authors. All rights reserved. |
| 4 | 4 |
| 5 Use of this source code is governed by a BSD-style license that can be | 5 Use of this source code is governed by a BSD-style license that can be |
| 6 found in the LICENSE file. | 6 found in the LICENSE file. |
| 7 --> | 7 --> |
| 8 | 8 |
| 9 <org.chromium.chrome.browser.tab.SadTabView | 9 <org.chromium.chrome.browser.tab.SadTabView |
| 10 xmlns:android="http://schemas.android.com/apk/res/android" | 10 xmlns:android="http://schemas.android.com/apk/res/android" |
| 11 xmlns:chrome="http://schemas.android.com/apk/res-auto" | 11 xmlns:chrome="http://schemas.android.com/apk/res-auto" |
| 12 xmlns:tools="http://schemas.android.com/tools" | 12 xmlns:tools="http://schemas.android.com/tools" |
| 13 tools:ignore="Overdraw" | 13 tools:ignore="Overdraw" |
| 14 android:background="#f7f7f7" | 14 android:background="#f7f7f7" |
| 15 android:fillViewport="true" | 15 android:fillViewport="true" |
| 16 android:layout_width="match_parent" | 16 android:layout_width="match_parent" |
| 17 android:layout_height="match_parent" | 17 android:layout_height="match_parent" |
| 18 android:paddingStart="24dp" | 18 android:scrollbarStyle="outsideOverlay" > |
| 19 android:paddingEnd="24dp" | |
| 20 android:paddingTop="24dp" | |
| 21 android:paddingBottom="24dp" | |
| 22 android:scrollbarStyle="outsideOverlay"> | |
| 23 | |
| 24 | 19 |
| 25 <LinearLayout | 20 <LinearLayout |
| 26 android:layout_height="wrap_content" | 21 android:layout_height="wrap_content" |
| 27 android:layout_width="wrap_content" | 22 android:layout_width="wrap_content" |
| 23 android:paddingStart="24dp" | |
| 24 android:paddingEnd="24dp" | |
| 25 android:paddingTop="24dp" | |
| 26 android:paddingBottom="24dp" | |
| 28 android:orientation="vertical" | 27 android:orientation="vertical" |
| 29 android:layout_gravity="center" | 28 android:layout_gravity="center_horizontal" |
|
Theresa
2017/05/09 21:01:36
layout_gravity="center"causes the top of the conte
| |
| 30 android:gravity="center"> | 29 android:gravity="center" > |
| 31 | 30 |
| 32 <ImageView | 31 <ImageView |
| 33 android:id="@+id/sad_tab_image" | 32 android:id="@+id/sad_tab_image" |
| 34 android:layout_width="wrap_content" | 33 android:layout_width="wrap_content" |
| 35 android:layout_height="wrap_content" | 34 android:layout_height="wrap_content" |
| 36 android:paddingBottom="26dp" | 35 android:paddingBottom="26dp" |
| 37 android:src="@drawable/sad_tab" | 36 android:src="@drawable/sad_tab" |
| 38 android:contentDescription="@null" | 37 android:contentDescription="@null" |
| 39 android:layout_gravity="start"/> | 38 android:layout_gravity="start" /> |
| 40 | 39 |
| 41 <TextView | 40 <TextView |
| 42 android:id="@+id/sad_tab_title" | 41 android:id="@+id/sad_tab_title" |
| 43 android:layout_width="wrap_content" | 42 android:layout_width="wrap_content" |
| 44 android:layout_height="wrap_content" | 43 android:layout_height="wrap_content" |
| 45 android:paddingBottom="16dp" | 44 android:paddingBottom="16dp" |
| 46 android:text="@string/sad_tab_title" | |
| 47 android:textColor="@color/sad_tab_header_text_color" | 45 android:textColor="@color/sad_tab_header_text_color" |
| 48 android:textSize="23sp" | 46 android:textSize="23sp" |
| 49 android:lineSpacingMultiplier="1.4" | 47 android:lineSpacingMultiplier="1.4" |
| 50 android:layout_gravity="start"/> | 48 android:layout_gravity="start" /> |
| 49 | |
| 50 <TextView | |
| 51 android:id="@+id/sad_tab_suggestions_title" | |
| 52 android:layout_width="wrap_content" | |
| 53 android:layout_height="wrap_content" | |
| 54 style="@style/SadTabBodyText" | |
| 55 android:visibility="gone" /> | |
| 56 | |
| 57 <TextView | |
| 58 android:id="@+id/sad_tab_suggestions" | |
| 59 android:layout_width="wrap_content" | |
| 60 android:layout_height="wrap_content" | |
| 61 android:paddingStart="12dp" | |
| 62 style="@style/SadTabBodyText" | |
| 63 android:visibility="gone" /> | |
| 51 | 64 |
| 52 <org.chromium.ui.widget.TextViewWithClickableSpans | 65 <org.chromium.ui.widget.TextViewWithClickableSpans |
| 53 android:id="@+id/sad_tab_message" | 66 android:id="@+id/sad_tab_message" |
| 54 android:layout_width="wrap_content" | 67 android:layout_width="wrap_content" |
| 55 android:layout_height="wrap_content" | 68 android:layout_height="wrap_content" |
| 56 android:paddingBottom="22dp" | 69 android:paddingBottom="22dp" |
| 57 android:textColor="@color/sad_tab_body_text_color" | 70 style="@style/SadTabBodyText" /> |
| 58 android:textSize="14sp" | |
| 59 android:layout_gravity="start"/> | |
| 60 | 71 |
| 61 <org.chromium.ui.widget.ButtonCompat | 72 <org.chromium.ui.widget.ButtonCompat |
| 62 android:id="@+id/sad_tab_reload_button" | 73 android:id="@+id/sad_tab_reload_button" |
| 63 android:layout_width="match_parent" | 74 android:layout_width="match_parent" |
| 64 android:layout_height="wrap_content" | 75 android:layout_height="wrap_content" |
| 65 android:text="@string/sad_tab_reload_label" | 76 android:text="@string/sad_tab_reload_label" |
| 66 android:textColor="#fff" | 77 android:textColor="#fff" |
| 67 android:minWidth="222dp" | 78 android:minWidth="222dp" |
| 68 chrome:buttonColor="@color/light_active_color" | 79 chrome:buttonColor="@color/light_active_color" |
| 69 android:layout_gravity="end"/> | 80 android:layout_gravity="end" /> |
| 70 </LinearLayout> | 81 </LinearLayout> |
| 71 </org.chromium.chrome.browser.tab.SadTabView> | 82 </org.chromium.chrome.browser.tab.SadTabView> |
| OLD | NEW |