aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-10-04 08:55:19 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-10-04 08:55:19 +0000
commit2b6f04a283c755f5f3b60d7585a9136e1a8bd491 (patch)
tree1830cd2ff8d2ee1c20169ccebc62e91035aeb9aa /app/src/main/res/layout
parent4f19bd83aa8d2500d825ce63ae8770325b4a44e9 (diff)
downloadinfinity-for-reddit-2b6f04a283c755f5f3b60d7585a9136e1a8bd491.tar
infinity-for-reddit-2b6f04a283c755f5f3b60d7585a9136e1a8bd491.tar.gz
infinity-for-reddit-2b6f04a283c755f5f3b60d7585a9136e1a8bd491.tar.bz2
infinity-for-reddit-2b6f04a283c755f5f3b60d7585a9136e1a8bd491.tar.lz
infinity-for-reddit-2b6f04a283c755f5f3b60d7585a9136e1a8bd491.tar.xz
infinity-for-reddit-2b6f04a283c755f5f3b60d7585a9136e1a8bd491.tar.zst
infinity-for-reddit-2b6f04a283c755f5f3b60d7585a9136e1a8bd491.zip
Random post and subreddit is available.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_fetch_random_subreddit_or_post.xml19
-rw-r--r--app/src/main/res/layout/fragment_random_bottom_sheet.xml83
2 files changed, 102 insertions, 0 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
new file mode 100644
index 00000000..501d2694
--- /dev/null
+++ b/app/src/main/res/layout/activity_fetch_random_subreddit_or_post.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout 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:id="@+id/relative_layout_fetch_random_subreddit_or_post_activity"
+ tools:context=".Activity.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"
+ app:lottie_autoPlay="true"
+ app:lottie_loop="true"
+ app:lottie_rawRes="@raw/random_subreddit_or_post" />
+
+</RelativeLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_random_bottom_sheet.xml b/app/src/main/res/layout/fragment_random_bottom_sheet.xml
new file mode 100644
index 00000000..3d7e2bb9
--- /dev/null
+++ b/app/src/main/res/layout/fragment_random_bottom_sheet.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ tools:context=".BottomSheetFragment.RandomBottomSheetFragment">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/random_subreddit_text_view_random_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp"
+ android:text="@string/random_subreddit"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/random_post_text_view_random_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp"
+ android:text="@string/random_post"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/random_nsfw_subreddit_text_view_random_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp"
+ android:text="@string/random_nsfw_subreddit"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/random_nsfw_post_text_view_random_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp"
+ android:text="@string/random_nsfw_post"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ </LinearLayout>
+
+</androidx.core.widget.NestedScrollView> \ No newline at end of file