Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll slow #55

Open
leiyuanhua opened this issue Nov 30, 2010 · 5 comments
Open

Scroll slow #55

leiyuanhua opened this issue Nov 30, 2010 · 5 comments

Comments

@leiyuanhua
Copy link

when more and more application added to the phone,(for example has 4 pages in the
AllAppsSlidingView) the scroll become slow(snap CurrentScreen to the NextScreen in AllAppsSlidingView).You find this problem?

@AnderWeb
Copy link
Owner

Yes, but i don't know howto solve...

@leiyuanhua
Copy link
Author

may be in the AllAppsSlidingView have other problem:
difficult to judge user's scroll or click a application.
often scroll the screen I want snap to next screen but open one application

@leiyuanhua
Copy link
Author

can you tell me which code cause this happen?

@leiyuanhua
Copy link
Author

I find if you last scroll right,now you scroll left this will scroll fast,but if you also scroll right,this will become very slow,why this happen?

@leiyuanhua
Copy link
Author

I think cache five page may be increase speed,the code modify as follow:
AllAppsSlidingView.java->layoutChildren:
makePage(mCurrentScreen-2);
makePage(mCurrentScreen-1);
makePage(mCurrentScreen);
makePage(mCurrentScreen+1);
makePage(mCurrentScreen+2;
AllAppsSlidingView.java->addRemovePages:
if(current>next){
//Going left
addPage=next-2;
removePage=current+2;
}else{
//Going right
addPage=next+2;
removePage=current-2;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants