diff options
Diffstat (limited to '')
-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> |