在android中改变方向时防止imageView重新加载
我在这个论坛的某个地方读到,Android 在更改手机方向后重新启动 Activity,是这样吗?如果是这样,我是否可以阻止它,我的活动中有一些图像是在活动开始时从互联网下载的,我只希望它们下载一次。或者我是否需要所有位图的缓存?对了,原来ListView不会重新加载吧?
I read somewhere in this forum that android starts the activity all over again after changing the orientation of the phone, is it the case? if so, is there anyway that I could prevent it, there are some images in my activities that is downloaded from the internet when the activity starts, I only want them to download once. Or do I need a cache for all of the bitmaps? By the way, it turns out that ListView would not be reloaded, right?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将其作为您使用的活动和您想要的其他活动的属性,
在应用程序清单中
put this as attribute on the activity u use and every other you want,
in the application manifest