Android:ScrollView 和绘图缓存?
从 ScrollView 滚出的视图是否会被绘图缓存自动缓存?我不太确定我是否理解 API 文档。
Are the views that get scrolled off of ScrollView automatically cached by the drawing cache? I'm not quite sure i understand the API documentation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
int PERSISTENT_ALL_CACHES
用于指示所有绘图缓存应保存在内存中。int PERSISTENT_ANIMATION_CACHE
用于指示动画绘制缓存应保留在内存中。int PERSISTENT_NO_CACHE
用于指示内存中不应保留任何绘图缓存。int PERSISTENT_SCROLLING_CACHE
用于指示滚动绘图缓存应保留在内存中。使用这些
指示在创建绘图缓存后应将哪些类型的绘图缓存保留在内存中。
示例
int PERSISTENT_ALL_CACHES
Used to indicate that all drawing caches should be kept in memory.int PERSISTENT_ANIMATION_CACHE
Used to indicate that the animation drawing cache should be kept in memory.int PERSISTENT_NO_CACHE
Used to indicate that no drawing cache should be kept in memory.int PERSISTENT_SCROLLING_CACHE
Used to indicate that the scrolling drawing cache should be kept in memory.Use these in
which indicates what types of drawing caches should be kept in memory after they have been created.
Example