skip to Main Content

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

enter image description here

2

Answers


  1. I think you are looking for this type of layout

    https://developer.android.com/training/swipe/add-swipe-interface

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search