也许之前下拉刷新你可能会用到一些第三方开源库,如PullToRefresh, ActionBar-PullToRefresh、XlistView等

但现在已经有官方的组件了---SwipeRefreshLayout

SwipeRefreshLayout

http://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html

05-11 22:19