Skip to content

如果快速滑动,程序会报内存溢出 java.lang.StackOverflowError: stack size 8MB #1

Description

@WhySRZ

解决办法:在onScrollChanged里面做Y值的判断,如何y值相同则返回。
if (mY == y){
return;
}else {
mY = y;
}
其中mY是全局的int 值,初始化值为-1;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions