-
Notifications
You must be signed in to change notification settings - Fork 135
/
Copy pathdefault_error_screen.xml
80 lines (76 loc) · 2.96 KB
/
default_error_screen.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:background="#FFF"
android:orientation="vertical"
android:visibility="visible">
<LinearLayout
android:padding="20dp"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:gravity="center"
android:textStyle="bold"
android:textColor="#000"
android:padding="10dp"
android:text="Critical Error Occured !"/>
<ImageView
android:tint="#F00"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:maxWidth="50dp"
android:maxHeight="50dp"
android:scaleType="fitCenter"
android:src="@android:drawable/ic_dialog_info"/>
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textColor="#000"
android:padding="10dp"
android:text="This is embarrassing. We sincerely apologize for this." />
<LinearLayout
android:layout_width="match_parent"
android:gravity="bottom"
android:paddingTop="10dp"
android:layout_height="wrap_content">
<Button
android:id="@+id/eh_restart_button"
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="RELAUNCH"/>
<Button
android:id="@+id/eh_quit_button"
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="QUIT"/>
</LinearLayout>
<Button
android:id="@+id/eh_show_details_button"
android:layout_width="match_parent"
android:layout_height="25dp"
android:text="SHOW DETAILS"
android:textSize="10sp"
android:background="@android:color/transparent"
android:textStyle="bold"
android:gravity="center"/>
<TextView
android:id="@+id/eh_stack_trace_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#EEE"
android:text=""
android:visibility="gone"/>
</LinearLayout>
</ScrollView>