I have seen in many application that pulling down to refresh the whole layout. How can I make that type of pull down to refresh. I am new in android development. I want to learn about this.
As for example I am showing some images enter image description here
CodePudding user response:
I think you are looking for this type of layout
https://developer.android.com/training/swipe/add-swipe-interface
CodePudding user response:
Make your activity's parent layout as androidx.swiperefreshlayout.widget.SwipeRefreshLayout
You can learn more at https://www.tutorialspoint.com/how-to-create-a-swipe-refresh-layout-in-android-using-kotlin