1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright 2013 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file.
9 <org.chromium.chrome.browser.tab.SadTabView
10 xmlns:android="http://schemas.android.com/apk/res/android"
11 xmlns:chrome="http://schemas.android.com/apk/res-auto"
12 xmlns:tools="http://schemas.android.com/tools"
13 tools:ignore="Overdraw"
14 android:background="#f7f7f7"
15 android:fillViewport="true"
16 android:layout_width="match_parent"
17 android:layout_height="match_parent"
18 android:paddingStart="24dp"
19 android:paddingEnd="24dp"
20 android:paddingTop="24dp"
21 android:paddingBottom="24dp"
22 android:scrollbarStyle="outsideOverlay">
26 android:layout_height="wrap_content"
27 android:layout_width="wrap_content"
28 android:orientation="vertical"
29 android:layout_gravity="center"
30 android:gravity="center">
33 android:id="@+id/sad_tab_image"
34 android:layout_width="wrap_content"
35 android:layout_height="wrap_content"
36 android:paddingBottom="26dp"
37 android:src="@drawable/sad_tab"
38 android:contentDescription="@null"
39 android:layout_gravity="start"/>
42 android:id="@+id/sad_tab_title"
43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
45 android:paddingBottom="16dp"
46 android:text="@string/sad_tab_title"
47 android:textColor="@color/sad_tab_header_text_color"
48 android:textSize="23sp"
49 android:lineSpacingMultiplier="1.4"
50 android:layout_gravity="start"/>
52 <org.chromium.ui.widget.TextViewWithClickableSpans
53 android:id="@+id/sad_tab_message"
54 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"
56 android:paddingBottom="22dp"
57 android:textColor="@color/sad_tab_body_text_color"
58 android:textSize="14sp"
59 android:layout_gravity="start"/>
61 <org.chromium.ui.widget.ButtonCompat
62 android:id="@+id/sad_tab_reload_button"
63 android:layout_width="match_parent"
64 android:layout_height="wrap_content"
65 android:text="@string/sad_tab_reload_label"
66 android:textColor="#fff"
67 android:minWidth="222dp"
68 chrome:buttonColor="@color/light_active_color"
69 android:layout_gravity="end"/>
71 </org.chromium.chrome.browser.tab.SadTabView>