aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-12-13 10:08:47 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-12-13 10:08:47 +0000
commitb9893c6d145f91081c36a73cfc42120b6762cd0b (patch)
tree6655e5879ba0d880123a2d85b7205647f1d85946 /app/src/main/res
parent2f5cdcbbdc0b83e05e9af5850ba01125710d7b30 (diff)
downloadinfinity-for-reddit-b9893c6d145f91081c36a73cfc42120b6762cd0b.tar
infinity-for-reddit-b9893c6d145f91081c36a73cfc42120b6762cd0b.tar.gz
infinity-for-reddit-b9893c6d145f91081c36a73cfc42120b6762cd0b.tar.bz2
infinity-for-reddit-b9893c6d145f91081c36a73cfc42120b6762cd0b.tar.lz
infinity-for-reddit-b9893c6d145f91081c36a73cfc42120b6762cd0b.tar.xz
infinity-for-reddit-b9893c6d145f91081c36a73cfc42120b6762cd0b.tar.zst
infinity-for-reddit-b9893c6d145f91081c36a73cfc42120b6762cd0b.zip
Show MultiReddits list.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/activity_multi_reddit_listing.xml65
-rw-r--r--app/src/main/res/layout/item_multi_reddit.xml33
-rw-r--r--app/src/main/res/values/strings.xml3
3 files changed, 100 insertions, 1 deletions
diff --git a/app/src/main/res/layout/activity_multi_reddit_listing.xml b/app/src/main/res/layout/activity_multi_reddit_listing.xml
new file mode 100644
index 00000000..73bf93ad
--- /dev/null
+++ b/app/src/main/res/layout/activity_multi_reddit_listing.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
+ tools:context=".Activity.MultiRedditListingActivity">
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:id="@+id/appbar_layout_multi_reddit_listing_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?attr/toolbarAndTabBackgroundColor"
+ android:theme="@style/AppTheme.AppBarOverlay">
+
+ <com.google.android.material.appbar.CollapsingToolbarLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ app:layout_scrollFlags="scroll|enterAlways"
+ app:titleEnabled="false"
+ app:toolbarId="@+id/toolbar_multi_reddit_listing_activity">
+
+ <androidx.appcompat.widget.Toolbar
+ android:id="@+id/toolbar_multi_reddit_listing_activity"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize"
+ app:popupTheme="@style/AppTheme.PopupOverlay"
+ app:navigationIcon="?attr/homeAsUpIndicator" />
+
+ </com.google.android.material.appbar.CollapsingToolbarLayout>
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/recycler_view_multi_reddit_listing_activity"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+
+ <LinearLayout
+ android:id="@+id/fetch_multi_reddit_listing_info_linear_layout_multi_reddit_listing_activity"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_marginBottom="48dp"
+ android:gravity="center"
+ android:orientation="vertical"
+ android:visibility="gone"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
+
+ <ImageView
+ android:id="@+id/fetch_multi_reddit_listing_info_image_view_multi_reddit_listing_activity"
+ android:layout_width="150dp"
+ android:layout_height="wrap_content" />
+
+ <TextView
+ android:id="@+id/fetch_multi_reddit_listing_info_text_view_multi_reddit_listing_activity"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:gravity="center"
+ android:textSize="?attr/font_default" />
+
+ </LinearLayout>
+
+</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_multi_reddit.xml b/app/src/main/res/layout/item_multi_reddit.xml
new file mode 100644
index 00000000..6a8723d2
--- /dev/null
+++ b/app/src/main/res/layout/item_multi_reddit.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="16dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground">
+
+ <pl.droidsonroids.gif.GifImageView
+ android:id="@+id/multi_reddit_icon_gif_image_view_item_multi_reddit"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="center_vertical"
+ android:layout_marginEnd="32dp" />
+
+ <TextView
+ android:id="@+id/multi_reddit_name_text_view_item_multi_reddit"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:textColor="@color/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:layout_gravity="center_vertical" />
+
+ <ImageView
+ android:id="@+id/favorite_image_view_item_multi_reddit"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:layout_gravity="end|center_vertical"
+ android:layout_marginStart="32dp" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 8f1aa5ca..1a610b48 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -16,6 +16,7 @@
<string name="view_message_activity_label">Inbox</string>
<string name="settings_activity_label">Settings</string>
<string name="account_saved_thing_activity">Saved</string>
+ <string name="multi_reddit_listing_activity">MultiReddit</string>
<string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string>
@@ -359,7 +360,7 @@
<string name="post_layout_card">Card Layout</string>
<string name="post_layout_compact">Compact Layout</string>
-
+
<string name="elapsed_time_just_now">Just Now</string>
<string name="elapsed_time_a_minute_ago">1 Minute</string>
<string name="elapsed_time_minutes_ago">%1$d Minutes</string>