Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 android 中使用 gridview 从 AWS s3 加载图像。还使用 picaso 库并在适配器的 getview 中调用它。现在,如果我向上和向下滚动,它会发送多个相同图像的请求。此外,那些需要大量时间加载的图像也会导致性能问题。
如果该getView()方法也被多次调用,这可能表明您的视图的宽度/高度设置为“包装内容”而不是“fill_parent”或“match_parent”。这会导致渲染系统不断计算容器视图有多大,从而导致对 getView 的大量调用
getView()