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
Post a Comment