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 has been archived by the owner on Jun 3, 2021. It is now read-only.
Android scroll组件-在页面打开的时候,会触发scrollEnd事件,ios则不会,看了下代码,在scrollview 初始化的时候init()方法里就用handler发送了一个消息
private void init() {
setWillNotDraw(false);
startScrollerTask();
setOverScrollMode(View.OVER_SCROLL_NEVER);
childHelper = new NestedScrollingChildHelper(this);
childHelper.setNestedScrollingEnabled(true);
}
public void startScrollerTask() {
if (mScrollerTask == null) {
mScrollerTask = new Handler(WXThread.secure(this));
}
mInitialPosition = getScrollY();
mScrollerTask.sendEmptyMessageDelayed(0, mCheckTime);
}
init中的startScrollerTask()是否可以注释掉或者是出于什么考虑这样设计
The text was updated successfully, but these errors were encountered: