Android implementation drop-down refresh there are a lot of open source source code can be used for example: Pulltorefreshlistview is also very convenient to use.
Now you can use Google Libs Android-support-v4.jar this package, please update your SDK to the latest
Using XML layouts
<android.support.v4.widget.swiperefreshlayout xmlns:android= "Http://schemas.android.com/apk/res/android"
Android:id= "@+id/refresh"
Android:layout_width= "Match_parent"
android:layout_height= "Match_parent"
>
<listview
Android:layout_width= "Match_parent"
android:layout_height= "Match_parent"
Android:id= "@+id/listview"
></ListView>
</android.support.v4.widget.SwipeRefreshLayout>
The outermost layer is a class swiperefreshlayout inside the ANDROID.SUPPORT.V4 package, which is placed inside the random view control.
Code inside:
Swiperefreshlayout detailed method, we look at the API documentation
Project inside the Android-support-v4.jar may not have swiperefreshlayout this class, I have uploaded up, can download here
Download package
Use the Google bring-your-own package for pull-down refresh features