Android
*https://github.com/chrisbanes/Android-PullToRefresh
*https://github.com/johannilsson/android-pulltorefresh
*https://github.com/chrisbanes/Android-PullToRefresh
*https://github.com/johannilsson/android-pulltorefresh
i use the Android-PullToRefresh. because it support :
- ListView
- ExpandableListView
- GridView
- WebView
- ScrollView
- HorizontalScrollView
- ViewPager
we just replace my GridView into PullToRefreshGridView, and setOnRefreshListener().
public static interface OnRefreshListener<V extends View>{
public void onRefresh(final PullToRefreshBase<V> refreshView);
}
Remember, you should call onRefreshComplete() let the UI stop the animation.
沒有留言:
張貼留言