aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-03-06 16:05:09 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-03-06 16:05:09 +0000
commit31f4739a170f830b6c8c59c568053b08f28ce29b (patch)
tree833b4e75e85a6eb3b9c88a4d13fea5862b6e6f91 /app/src/main/res/layout
parenta03cdfe814a4809d7de5bc6e7534fbdb50990d44 (diff)
downloadinfinity-for-reddit-31f4739a170f830b6c8c59c568053b08f28ce29b.tar
infinity-for-reddit-31f4739a170f830b6c8c59c568053b08f28ce29b.tar.gz
infinity-for-reddit-31f4739a170f830b6c8c59c568053b08f28ce29b.tar.bz2
infinity-for-reddit-31f4739a170f830b6c8c59c568053b08f28ce29b.tar.lz
infinity-for-reddit-31f4739a170f830b6c8c59c568053b08f28ce29b.tar.xz
infinity-for-reddit-31f4739a170f830b6c8c59c568053b08f28ce29b.tar.zst
infinity-for-reddit-31f4739a170f830b6c8c59c568053b08f28ce29b.zip
Show a suicide prevention quote when searching suicide.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_fetch_random_subreddit_or_post.xml1
-rw-r--r--app/src/main/res/layout/activity_suicide_prevention.xml63
2 files changed, 63 insertions, 1 deletions
diff --git a/app/src/main/res/layout/activity_fetch_random_subreddit_or_post.xml b/app/src/main/res/layout/activity_fetch_random_subreddit_or_post.xml
index 5072b834..a08f1f35 100644
--- a/app/src/main/res/layout/activity_fetch_random_subreddit_or_post.xml
+++ b/app/src/main/res/layout/activity_fetch_random_subreddit_or_post.xml
@@ -8,7 +8,6 @@
tools:context=".activities.FetchRandomSubredditOrPostActivity">
<com.airbnb.lottie.LottieAnimationView
- android:id="@+id/lottie_animation_view_fetch_random_subreddit_or_post_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
diff --git a/app/src/main/res/layout/activity_suicide_prevention.xml b/app/src/main/res/layout/activity_suicide_prevention.xml
new file mode 100644
index 00000000..1e48cb12
--- /dev/null
+++ b/app/src/main/res/layout/activity_suicide_prevention.xml
@@ -0,0 +1,63 @@
+<?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"
+ android:id="@+id/linear_layout_suicide_prevention_activity"
+ tools:context=".activities.SuicidePreventionActivity">
+
+ <com.airbnb.lottie.LottieAnimationView
+ android:id="@+id/lottie_animation_view"
+ android:layout_width="wrap_content"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:layout_gravity="center_horizontal"
+ app:lottie_autoPlay="true"
+ app:lottie_loop="true"
+ app:lottie_rawRes="@raw/love" />
+
+ <TextView
+ android:id="@+id/quote_text_view_suicide_prevention_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:padding="16dp"
+ android:text="@string/suicide_prevention_quote"
+ android:fontFamily="?attr/font_family"
+ android:textSize="?attr/font_20" />
+
+ <LinearLayout
+ android:id="@+id/linear_layout_check_box_wrapper_suicide_prevention_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="16dp">
+
+ <com.google.android.material.checkbox.MaterialCheckBox
+ android:id="@+id/do_not_show_this_again_check_box"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+ <TextView
+ android:id="@+id/do_not_show_this_again_text_view"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="@string/do_not_show_this_again"
+ android:layout_gravity="center_vertical"
+ android:fontFamily="?attr/font_family"
+ android:textSize="?attr/font_default" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/continue_button_suicide_prevention_activity"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="end"
+ android:layout_marginStart="8dp"
+ android:layout_marginEnd="8dp"
+ android:text="@string/continue_suicide_prevention_activity" />
+
+ </LinearLayout>
+
+</LinearLayout> \ No newline at end of file