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
Update
Here is that example, how I want to refresh the layout after pull down the layout
2
Answers
I think you are looking for this type of layout
https://developer.android.com/training/swipe/add-swipe-interface
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