OverscrollLayout icon indicating copy to clipboard operation
OverscrollLayout copied to clipboard

scrollview怎么确定事件只响应一次

Open GuoZhaoHui628 opened this issue 7 years ago • 0 comments

overScrollLayout.setOnOverScrollListener(new OnOverScrollListener() { @Override public void onTopOverScroll() { Log.d(TAG,"-------scroll-------up"); }

        @Override
        public void onBottomOverScroll() {
            Log.d(TAG,"-------scroll-------bottom");
        }

        @Override
        public void onLeftOverScroll() {
            Log.d(TAG,"-------scroll-------left");
        }

        @Override
        public void onRightOverScroll() {
            Log.d(TAG,"-------scroll-------right");
        }
    });

如上代码,发现下拉时onTopOverScroll方法会调用很多次

GuoZhaoHui628 avatar Apr 17 '17 01:04 GuoZhaoHui628