diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-12-17 04:36:48 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-12-17 04:36:48 +0000 |
commit | f834f5804cf0d6ec2724ec304461e79de712c0cf (patch) | |
tree | 32bc2f0682d6657969725d26bcb353d2b7502070 /app/src/main/res | |
parent | 666ac642fc49b58e25eca153099181d2c6a1f338 (diff) | |
download | infinity-for-reddit-f834f5804cf0d6ec2724ec304461e79de712c0cf.tar infinity-for-reddit-f834f5804cf0d6ec2724ec304461e79de712c0cf.tar.gz infinity-for-reddit-f834f5804cf0d6ec2724ec304461e79de712c0cf.tar.bz2 infinity-for-reddit-f834f5804cf0d6ec2724ec304461e79de712c0cf.tar.lz infinity-for-reddit-f834f5804cf0d6ec2724ec304461e79de712c0cf.tar.xz infinity-for-reddit-f834f5804cf0d6ec2724ec304461e79de712c0cf.tar.zst infinity-for-reddit-f834f5804cf0d6ec2724ec304461e79de712c0cf.zip |
Add menusin ViewMultiRedditDetailActivity. Minor bugs fixed.
Diffstat (limited to '')
4 files changed, 40 insertions, 2 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 index 73bf93ad..7a5deacb 100644 --- a/app/src/main/res/layout/activity_multi_reddit_listing.xml +++ b/app/src/main/res/layout/activity_multi_reddit_listing.xml @@ -58,6 +58,7 @@ android:layout_height="wrap_content" android:layout_marginTop="16dp" android:gravity="center" + android:text="@string/no_multi_reddits" android:textSize="?attr/font_default" /> </LinearLayout> diff --git a/app/src/main/res/layout/activity_view_multi_reddit_detail.xml b/app/src/main/res/layout/activity_view_multi_reddit_detail.xml index a1dc4622..797efe48 100644 --- a/app/src/main/res/layout/activity_view_multi_reddit_detail.xml +++ b/app/src/main/res/layout/activity_view_multi_reddit_detail.xml @@ -19,6 +19,7 @@ android:id="@+id/collapsing_toolbar_layout_view_multi_reddit_detail_activity" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="?attr/backgroundColor" app:titleEnabled="false" app:contentScrim="?attr/colorPrimary" app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed" @@ -32,7 +33,6 @@ android:id="@+id/icon_gif_image_view_view_multi_reddit_detail_activity" android:layout_width="72dp" android:layout_height="72dp" - android:layout_marginTop="-36dp" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:elevation="4dp" /> @@ -41,7 +41,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingTop="36dp" android:paddingStart="16dp" android:paddingEnd="16dp" android:layout_below="@id/icon_gif_image_view_view_multi_reddit_detail_activity" diff --git a/app/src/main/res/menu/view_multi_reddit_detail_activity.xml b/app/src/main/res/menu/view_multi_reddit_detail_activity.xml new file mode 100644 index 00000000..0c88dc70 --- /dev/null +++ b/app/src/main/res/menu/view_multi_reddit_detail_activity.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu 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" + tools:application="ml.docilealligator.infinityforreddit.Activity.ViewMultiRedditDetailActivity"> + <item + android:id="@+id/action_sort_view_multi_reddit_detail_activity" + android:orderInCategory="1" + android:title="@string/action_sort" + android:icon="@drawable/ic_outline_sort_24px" + app:showAsAction="ifRoom" /> + + <item + android:id="@+id/action_search_view_multi_reddit_detail_activity" + android:orderInCategory="2" + android:title="@string/action_search" + android:icon="@drawable/ic_search_white_24dp" + app:showAsAction="ifRoom" /> + <item + android:id="@+id/action_refresh_view_multi_reddit_detail_activity" + android:orderInCategory="3" + android:title="@string/action_refresh" + android:icon="@drawable/ic_refresh_white_24dp" + app:showAsAction="never" /> + + <item + android:id="@+id/action_lazy_mode_view_multi_reddit_detail_activity" + android:orderInCategory="4" + android:title="@string/action_start_lazy_mode" + app:showAsAction="never" /> + + <item + android:id="@+id/action_change_post_layout_view_multi_reddit_detail_activity" + android:orderInCategory="5" + android:title="@string/action_change_post_layout" + app:showAsAction="never" /> +</menu>
\ 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 2b279a05..23bd47be 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -60,6 +60,7 @@ <string name="no_comments">No comments found</string> <string name="no_subreddits">No subreddits found</string> <string name="no_users">No users found</string> + <string name="no_multi_reddits">No Multireddits found</string> <string name="no_storage_permission">No storage permission to save this file</string> <string name="load_comments_failed">Error loading comments.\nTap to retry.</string> |