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

Unified Diff: chrome/android/java/res/layout/sad_tab.xml

Issue 801533002: Move sad tab upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/res/layout/sad_tab.xml
diff --git a/chrome/android/java/res/layout/sad_tab.xml b/chrome/android/java/res/layout/sad_tab.xml
new file mode 100644
index 0000000000000000000000000000000000000000..099b8beb6306576dedaabcb5cee83cf59a52f2ff
--- /dev/null
+++ b/chrome/android/java/res/layout/sad_tab.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (c) 2013 The Chromium Authors. All rights reserved.
aurimas (slooooooooow) 2014/12/12 18:24:24 Remove (c)
+
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file.
+-->
+
+<ScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:ignore="Overdraw"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#e6e6e6">
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:background="@drawable/sad_tab_background"
+ android:orientation="vertical"
+ android:padding="16dp">
+
+ <ImageView
+ android:id="@+id/sad_tab_image"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:layout_marginTop="17dp"
+ android:src="@drawable/sad_tab"
+ android:contentDescription="@null" />
+
+ <TextView
+ android:id="@+id/sad_tab_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:layout_marginTop="15dp"
+ android:text="@string/sad_tab_title"
+ android:textColor="#666"
+ android:textSize="20sp" />
+
+ <Button
+ android:id="@+id/sad_tab_reload_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:layout_marginTop="15dp"
+ android:background="@drawable/sad_tab_reload_button"
+ android:text="@string/sad_tab_reload_label"
+ android:textColor="#fff"
+ android:textSize="13.8sp"
+ android:textStyle="bold"
+ android:paddingTop="8dp"
+ android:paddingBottom="8dp"
+ android:paddingStart="13dp"
+ android:paddingEnd="13dp"
+ android:minWidth="65dp"
+ android:minHeight="29dp" />
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:layout_marginTop="15dp"
+ android:background="#eee" />
+
+ <!-- Note: Using layout_width="wrap_content" and width="538dp" forces this TextView
+ to be as wide as possible up to a maximum width of 538dp. -->
+ <org.chromium.ui.widget.TextViewWithClickableSpans
+ android:id="@+id/sad_tab_message"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@drawable/sad_tab_lower_panel_background"
+ android:paddingTop="18dp"
+ android:paddingBottom="18dp"
+ android:paddingStart="20dp"
+ android:paddingEnd="20dp"
+ android:textColor="#444"
+ android:textSize="13.8sp"
+ android:width="538dp" />
+ </LinearLayout>
+
+</ScrollView>

Powered by Google App Engine
This is Rietveld 408576698