udacity / Sunshine-Version-2

The official repository for Developing Android Apps
Apache License 2.0
2.87k stars 4.41k forks source link

How to add a refresh button? #334

Open diliproshitha opened 7 years ago

diliproshitha commented 7 years ago

How can i add a refresh button? which methods should I call?

ashwanidv100 commented 6 years ago

For Adding Swipe-to-Refresh To Your App You can Add the SwipeRefreshLayout Widget or Add a Refresh Action to the Action Bar, You can get here every single detail --> (https://developer.android.com/training/swipe/add-swipe-interface.html#AddSwipeWidget)

And for Respond to the Refresh Gesture or Respond to the Refresh Action -->(https://developer.android.com/training/swipe/respond-refresh-request.html#RespondAction)