Add swipe to refresh

This commit is contained in:
2019-09-25 19:41:45 +02:00
committed by Matte23
parent d3915dc020
commit 275c819be5
9 changed files with 64 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/circulars_refresh"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -7,4 +8,4 @@
android:id="@+id/circulars_list"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@@ -8,6 +8,10 @@
android:title="@string/menu_search"
app:actionViewClass="androidx.appcompat.widget.SearchView"
app:showAsAction="ifRoom" />
<item
android:id="@+id/menu_main_refresh"
android:title="@string/menu_refresh"
app:showAsAction="never" />
<item
android:id="@+id/menu_main_settings"
android:title="@string/title_settings" />

View File

@@ -8,6 +8,7 @@
<string name="menu_about">About</string>
<string name="menu_search">Search</string>
<string name="menu_refresh">Refresh</string>
<string name="preferences_general_header">General</string>
<string name="preference_notifications_header">Notifications</string>