You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 27, 2020. It is now read-only.
@OverRide
public void onPullDownToRefresh(PullToRefreshBase refreshView) {
System.out.println("onPullDownToRefresh");
// Update the whole state, and forbidden touch
getInnerScroller().onRefresh(true);
// new Handler().postDelayed(new Runnable() {
// @OverRide
// public void run() {
// Return to normal state
getInnerScroller().onRefresh(false);
// Test code
switch (WelcomeActivity.demoType) {
case Pull_to_add_Magic_Header_Mixed:
case Pull_to_add_Magic_Header_Mixed_Complicated_header:
if (getActivity() instanceof DemoActivity) {
((DemoActivity) getActivity()).addRandomPic();
}
break;
case Pull_to_add_Inner_Header_Mixed:
addRandomPic();
break;
default:
// nothing
break;
}
if (getInnerScroller().getReceiveView() instanceof PullToRefreshBase) {
((PullToRefreshBase)getInnerScroller().getReceiveView()).onRefreshComplete();
}
//这个是注释的,不加延迟,调用onRefreshComplete不能reset;
// }
// }, 2000);
}