android-studio - 缩略图加载时间过长
问题描述
我正在尝试使用 Glide 加载缩略图,但耗时太长。前几个缩略图会立即加载,但您必须等待很长时间才能加载其余的缩略图。
Glide.with(Context)
.load(new File(videoFiles.get(position).getPath()))
.placeholder(android.R.drawable.alert_dark_frame)
.error(android.R.drawable.stat_notify_error)
.into(holder.thumbnail);
我也尝试过毕加索,但结果并没有太大的不同。
Picasso.get()
.load(new File(videoFiles.get(position).getPath()))
.placeholder(alert_dark_frame)
.error(stat_notify_error)
.into(holder.thumbnail);
我应该更改什么实现以按预期更快地加载它们?
解决方案
推荐阅读
- firebase - Firebase 实时数据库:将服务器 TIMESTAMP 设置为节点的键
- c# - 将 C# 中的用户定义类型发布到 SQL Server 时出错
- java - 如何将数据类型字符串迁移到布尔值?
- random - “Last In, Random Out”有更好的名字吗?
- background-color - 使用 Pine-Script v4 (Tradingview) 在蜡烛周围包裹背景颜色
- javascript - AJAX 请求有效负载未显示在控制台日志中
- ruby-on-rails - 导轨中止!ArgumentError:参数数量错误(给定 0,预期 1..2)
- laravel - 更新给定 ID 集合中的 `index` 属性
- javascript - 如何使整个图像比较滑块居中
- c# - 当玩家在 Unity2D 中使用 Cinemachine 跳跃时,如何让凸轮忽略 y 轴?