skip to Main Content

Android Studio – How to cadd a swipe to refresh to my code?

I have the following layout code in my xlm, to call my recycler view in my status fragment <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".fragments.Status"> <androidx.swiperefreshlayout.widget.SwipeRefreshLayout android:id="@+id/swipeToRefresh" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/statusRecyclerView" android:layout_width="match_parent" android:layout_height="match_parent"…

VIEW QUESTION
Back To Top
Search