android - Have a ListView load Views before they are scrolled into view -
i have listview uses custom arrayadapter inflate views. of these views need display images. in order keep listview hiccuping while scroll, have each view needs load bitmap on dedicated thread, , call ui thread when bitmap ready added imageview.
this works great, problem layout bitmap added need expand hold bitmap, , instantaneous expansion looks jarring user.
if there way load bitmap little earlier, before it's scrolled view, there chance loaded time scrolled view. question is:
is there way extend boundaries of region listview uses determine when ask adapter view display? assume can go hack listview source, wanted avoid if possible.
or, if have better suggestion, please let me know.
use injustdecodebounds load size of image first in ui thread self , set size of image view accordingly start loading full image in thread
Comments
Post a Comment