开发者

Android memory management

开发者 https://www.devze.com 2023-03-27 02:14 出处:网络
I am working on an Android app, that has lots of images (a few hundred) to be displayed in a grid format. I am using a custom HorizontalListView and a couple of LazyLoading, Caching techniques to achi

I am working on an Android app, that has lots of images (a few hundred) to be displayed in a grid format. I am using a custom HorizontalListView and a couple of LazyLoading, Caching techniques to achieve the required UI.

What I have noticed (in DDMS) is, the app consumes a lot more me开发者_StackOverflowmory on Android 3.2 compared to Android 2.3.3 I was expecting a small difference, however my app consumes about 35Mb on Android 3.2 and only 12Mb on 2.3.3. Any particular reason for such a huge difference?


Are you considering supporting multiple screens while loading images?

I think your problem is screen type and the size of image. If you focus on this area, you may get improved results.

0

精彩评论

暂无评论...
验证码 换一张
取 消