Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Gallery/ImageView explodes memory

$
0
0

Hi,

I'm developing a Xamarin Forms app. Since there is no gallery view on Xamarin Forms, I'm currently writing my client side image gallery for each platform. On Android, I have encountered the following problem:

Before I start the gallery activity, I have a memory footprint of approx. 90MB. After loading a gallery with two images (size 800kb on disk), the footprint explodes to almost 200MB. The swiping is stuttering, and shortly afterwards the app crashes with an OutOfMemory exception. Is this a common problem? How do you guys solve it? I have read about scaling down images using BitmapFactory, however the images are small and don't need to be scaled down. Or am I missing something?

Kind regards,
Max


Viewing all articles
Browse latest Browse all 204402

Trending Articles