performance - Scrolling is not smooth in android Grid View -


in android application, loading images api's. after images loaded in grid view, scrolling not smooth. using asynchronous threads fetch images not block ui.

any suggestions improve performance of scrolling.

loading images in separate thread helps, there's important performance issue take care of here, , that's "view reusability", once you've set image in adapter, make sure reusing views provided in getview method of adapter, , not creating/inflating new layout(gridelement) every time method called, causes scrolling go slow once images have been loaded, there's several patterns available approach issue, should read viewholder, common , easy use pattern issue...

hope helps...

regards


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -