Android Drawable vs Asset in image download performance

I am an Android developer from Korea

My project has functions for loading a large number of huge raster images (about 2000 x 1,500 pixels)

I had some experiments to compare the time complexity and the complexity of the space between Asset and Drawable

As a result, Asset is better than that extracted in complexity of space.

When I load huge images using drawable, my application crashes into OutOfMemoryException: the size of the bitmap exceeds the VM budget

but when I upload huge images using Asset, it works great!

Does anyone know the reason why this happened?

Or does anyone know how Drawable works on the Android platform? step by step.

Please, help.

Thanks for reading.

+4
1

Uri ImageView, BitmapFactory . , .

Drawable . , Drawable s, Drawable , .

+5

Source: https://habr.com/ru/post/1525167/


All Articles