android_packages_apps_Launcher icon indicating copy to clipboard operation
android_packages_apps_Launcher copied to clipboard

Scroll slow

Open leiyuanhua opened this issue 14 years ago • 5 comments

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?

leiyuanhua avatar Nov 30 '10 02:11 leiyuanhua

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

AnderWeb avatar Nov 30 '10 19:11 AnderWeb

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 avatar Dec 01 '10 03:12 leiyuanhua

can you tell me which code cause this happen?

leiyuanhua avatar Dec 14 '10 06:12 leiyuanhua

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 avatar Dec 15 '10 11:12 leiyuanhua

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; }

leiyuanhua avatar Dec 23 '10 07:12 leiyuanhua