blob: 8bed9de423d34950ed50032d9cf844c4573a1da6 (
plain)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:showIn="@layout/activity_push_notification">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:navigationIcon="@drawable/ic_arrow_back_24dp"
app:title="@string/app_name" />
<LinearLayout
android:id="@+id/progressWrapper"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:padding="@dimen/spacer_2x">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/spacer_2x"
android:text="@string/updating_card"
android:textAppearance="?attr/textAppearanceBody1" />
<ProgressBar
android:id="@+id/progress"
style="?android:attr/progressBarStyleHorizontal"
android:indeterminateTint="@color/defaultBrand"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:indeterminate="true" />
</LinearLayout>
<ScrollView
android:id="@+id/browserFallback"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
android:padding="@dimen/spacer_2x">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/subject"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:maxLength="200"
tools:text="@tools:sample/lorem/random" />
<TextView
android:id="@+id/message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacer_2x"
android:visibility="gone"
tools:maxLength="200"
tools:text="@tools:sample/lorem/random"
tools:visibility="visible" />
<com.google.android.material.button.MaterialButton
android:id="@+id/submit"
style="@style/Widget.Material3.Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacer_2x"
android:text="@string/open_in_browser" />
</LinearLayout>
</ScrollView>
<ScrollView
android:id="@+id/errorWrapper"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
android:padding="@dimen/spacer_2x">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/errorExplanation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autoLink="web"
tools:text="@string/push_notification_link_empty" />
<com.google.android.material.button.MaterialButton
android:id="@+id/showError"
style="@style/Widget.Material3.Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacer_2x"
android:text="@string/show_error" />
</LinearLayout>
</ScrollView>
</LinearLayout>
|