diff options
author | glowinthedark <48893368+glowinthedark@users.noreply.github.com> | 2020-02-29 21:50:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-01 02:20:09 +0530 |
commit | 09005f804335ee86fdcedd50221f1bb5984646da (patch) | |
tree | bce6e459c9237a7f2e8331285df389149c940674 /app/src/main/res | |
parent | 947e41105b3fdfb7ce9734fb25119c46695f7bba (diff) |
swipe to refresh using androidx SwipeRefreshLayout (#645)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/password_recycler_view.xml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/app/src/main/res/layout/password_recycler_view.xml b/app/src/main/res/layout/password_recycler_view.xml index f58543ac..dd6b00c1 100644 --- a/app/src/main/res/layout/password_recycler_view.xml +++ b/app/src/main/res/layout/password_recycler_view.xml @@ -10,13 +10,19 @@ android:clipToPadding="false" tools:context="com.zeapo.pwdstore.PasswordFragment"> - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/pass_recycler" - android:scrollbars="none" + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:id="@+id/swipe_refresher" android:layout_width="match_parent" - android:layout_height="match_parent" - tools:listitem="@layout/password_row_layout" - tools:itemCount="20" /> + android:layout_height="match_parent"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/pass_recycler" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scrollbars="none" + tools:itemCount="20" + tools:listitem="@layout/password_row_layout" /> + </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> <LinearLayout android:id="@+id/create_options" |