BitmapFactory.Options.inBitmap causes tearing when switching ImageView bitmap often

后端 未结 5 863
野的像风
野的像风 2021-02-05 16:31

I\'ve encountered a situation where I have to display images in a slideshow that switches image very fast. The sheer number of images makes me want to store the JPEG data in mem

5条回答
  •  [愿得一人]
    2021-02-05 17:02

    It's related to image caching, asycTask processing, background download from net etc. Please read this page: http://developer.android.com/training/displaying-bitmaps/index.html

    If you download and look into the sample project bitmapfun on that page, I trust it will solve all your problem. That's a perfect sample.

提交回复
热议问题