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.
我有一个滚动视图,在每一行中我加载图片和文本(图片路径和文本是从数据库加载的)。问题是,如果图片的分辨率非常高,则应用程序移动非常缓慢,当我滚动时,它需要一段时间才能加载,但是当我调整图片大小时,滚动变得流畅。所以,问题是:我怎样才能让应用程序更快?我应该加载图片的缩略图并加载缩略图而不是实际图像吗?
我认为您正在主 UI 线程上加载列表视图的内容(UI 响应速度较慢的原因)。我建议使用AsyncTask加载列表的内容。希望这对您有所帮助。