How to Create ActionBar-PullToRefresh in Android

Introduction ActionBar-PullToRefresh

ActionBar-PullToRefresh is a library which is used to refresh the page. It interacts with the application ActionBar.
It provides us a new UI pattern which improves the usability of the application.Real Time Example:
We can see this feature very well in many applications like Facebook, Gmail, Twitter etc.

Add Libraries Before Creating Application:
To use this feature in our application, we have to download some external libraries and import it into our workspace.
ActionBar-PullToRefresh & SmoothProgressBar , both are the libraries which are available on official website, are required in creating the ActionBar-PullToRefresh example.
After importing, add SmoothProgressBar as a library in ActionBar-PullToRefresh.

Example with Code:
Here in this example, I will show ListView and Webview implementation.
⦁ Create an Application ActionBarPullToRefreshExampleAndroid.
⦁ Add ActionBar-PullToRefresh as a library in your project.

Conclusion

This is a simple example of ActionBar-PulltoRefresh in Android. It increases the usability of the application by adding two libraries. As discussed above we can create this example easily. These days, this functionality is used in many applications. We can customize it according to our need of the application. This is a very important feature in Android Development.