android - Updating SeekBar in ListView -
i have listview each item represents podcast can run 90 minutes. selecting item display seekbar , start streaming in audio url using mediaplayer.
i use pointers on how handle maintaining state of seekbar after scrolls off page , scrolled view. know views recycled , i've read caching views in adapter bad idea i'm wondering other options there are.
i know views recycled , i've read caching views in adapter bad idea
it's bad idea cache all views, except via recycling mechanism. caching 1 seekbar
, or row containing seekbar
, won't big of problem. caching 1,000 rows trouble lies.
so, i'd note position
1 playing podcast. in getview()
implementation in adapter, if requested position
1 playing podcast, use cached row. otherwise, go through normal recycling.
Comments
Post a Comment