SwipeRefreshLayout 是谷歌官方下拉刷新控件,4.0如下的版本须要用到 android-support-v4.jar包才能用到html
android-support-v4.jar 包下载地址:输入连接说明java
官网API地址:输入连接说明android
GitHub Demo下载地址:输入连接说明git
SwipeRefreshLayout 使用起来是很是简单的,只须要在能够滑动的控件外层添加便可,如:WebView、ListView和ScroolView.github
android:layout_width="match_parent"
android:layout_height="match_parent" >
android:id="@+id/swipe_container"
android:layout_width="match_parent"
android:layout_height="match_parent" >
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height=&