diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-12-31 07:11:12 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-12-31 07:11:12 +0000 |
commit | e4ce71bf2a15232bacbb8eef438b35dcd5a8e08a (patch) | |
tree | 22ba584b56f35d59bf53a10bf7cb320ac3de62cb /app/src/main/res | |
parent | 286ab8ebca82a236a5ea40bdf111cda1e87927ec (diff) | |
download | infinity-for-reddit-e4ce71bf2a15232bacbb8eef438b35dcd5a8e08a.tar infinity-for-reddit-e4ce71bf2a15232bacbb8eef438b35dcd5a8e08a.tar.gz infinity-for-reddit-e4ce71bf2a15232bacbb8eef438b35dcd5a8e08a.tar.bz2 infinity-for-reddit-e4ce71bf2a15232bacbb8eef438b35dcd5a8e08a.tar.lz infinity-for-reddit-e4ce71bf2a15232bacbb8eef438b35dcd5a8e08a.tar.xz infinity-for-reddit-e4ce71bf2a15232bacbb8eef438b35dcd5a8e08a.tar.zst infinity-for-reddit-e4ce71bf2a15232bacbb8eef438b35dcd5a8e08a.zip |
Fetch subreddit info in ViewSidebarActivity.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_view_sidebar.xml | 17 | ||||
-rw-r--r-- | app/src/main/res/menu/view_sidebar_activity.xml | 10 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 1 |
3 files changed, 23 insertions, 5 deletions
diff --git a/app/src/main/res/layout/activity_view_sidebar.xml b/app/src/main/res/layout/activity_view_sidebar.xml index 31ed1529..169afaa6 100644 --- a/app/src/main/res/layout/activity_view_sidebar.xml +++ b/app/src/main/res/layout/activity_view_sidebar.xml @@ -32,12 +32,19 @@ </com.google.android.material.appbar.AppBarLayout> - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/markdown_recycler_view_view_sidebar_activity" + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:id="@+id/swipe_refresh_layout_view_sidebar_activity" android:layout_width="match_parent" android:layout_height="match_parent" - android:padding="16dp" - android:clipToPadding="false" - app:layout_behavior="@string/appbar_scrolling_view_behavior" /> + app:layout_behavior="@string/appbar_scrolling_view_behavior"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/markdown_recycler_view_view_sidebar_activity" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="16dp" + android:clipToPadding="false" /> + + </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/menu/view_sidebar_activity.xml b/app/src/main/res/menu/view_sidebar_activity.xml new file mode 100644 index 00000000..3bb65dee --- /dev/null +++ b/app/src/main/res/menu/view_sidebar_activity.xml @@ -0,0 +1,10 @@ +<?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"> + <item + android:id="@+id/action_refresh_view_sidebar_activity" + android:orderInCategory="1" + android:title="@string/action_refresh" + android:icon="@drawable/ic_refresh_white_24dp" + app:showAsAction="ifRoom" /> +</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 fd022e0c..64cbedf9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -92,6 +92,7 @@ <string name="online_subscribers_number_detail">Online: %1$d</string> <string name="cannot_fetch_subreddit_info">Cannot fetch subreddit info</string> <string name="cannot_fetch_user_info">Cannot fetch user info</string> + <string name="cannot_fetch_sidebar">Cannot fetch sidebar</string> <string name="gilded_count">x%1$d</string> <string name="title_activity_view_user_detail">ViewUserDetailActivity</string> |