android - ListView items. Handle images with huge height -


i have listview items simple view inside, , need display image huge height in it. have cache system can split large image smaller ones.

question:

what best way handle displaying large images in 1 listview item? sure can add views item @ runtime(10 view 1000px height example), think out of memory.

my point make app display image 9gag app.

9gag app

enter image description here

9gag view hierarchy

enter image description here

do not load large bitmaps memory consider loading smaller version memory, set insamplesize true in bitmapfactory.options object. example, image resolution 2048x1536 decoded insamplesize of 4 produces bitmap of approximately 512x384.

use these common guidelines loading large bitmaps


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -