ZRefreshLayout
public void autoRefresh(boolean haveAnimate) { if (state == REST) { //等待回调 刷新完成 state = AUTO_PULL; log("AUTO_PULL!"); if (mPullListener != null) mPullListener.refresh(this); if (mIHeaderView != null) { mIHeaderView.onRefreshing(headerView.getHeight(), true); } if (!haveAnimate) mIScroll.scrollTo_(getRefreshAbleHeight(), true); else { mAnimateBack = AnimateBack.Auto_Refresh; mIScroll.smoothScrollTo_(getRefreshAbleHeight()); } } }
Tips:逻辑顺序-》mIHeaderView.onRefreshing-》scrollTo_/smoothScrollTo_
而smoothScrollTo_会走mIHeaderView的 interceptAnimateBack 和 animateBack
There was an error while loading. Please reload this page.
[Home/总览概要] en/cn
[AutoRefresh]en/cn
[AnimateBack]en/cn
[GlobalConfiguration]en/cn
[IFooterView]en/cn
[IHeaderView]en/cn
[IResistance]en/cn
[Update Logs]en/cn