panpf
panpf
图片大小相关的问题请查看文档:https://github.com/panpf/sketch/blob/main/docs/wiki/resize_zh.md
加大 resizeSize
在现有逻辑下只有 resizeSize 特别小的时候可能才会有这种情况,针对这种情况你可以加一个全局的 RequestInterceptor,resizeSize 特别的时候你主动给他加大一些
https://github.com/panpf/sketch/blob/main/docs/wiki/request_interceptor.md
For AVIF format, decoding through BitmapFactory is supported since Android 12, but BitmapRegionDecoder, which relies on subsampling, still does not support avif format until the current Android 15 Until the...
Let’s first imagine the general implementation logic of this function: 1. Add a new attribute to ImageRequest to set the uri for thumbnails 2. Concurrently load thumbnails and original images...
I tried it, but there is no easy way to support clipPadding = false, so this requirement needs to be considered in the long run.
你这段代码有一个问题,val state = rememberAsyncImageState() 的 state 并没有传递给 AsyncImage,因此即使有进度也不会更新到你创建的 state ,就更不会再传递到 ProgressIndictor 另外,进度更新逻辑是 300 毫秒更新一次进度,如果 300 毫秒内图片就下载完成了,进度指示器也会立即消失,你不会看到有进度只会看到指示器消失了
超过 5 秒不一定是下载了 5 秒,有可能 http 连接耗时 4.8 秒,真正读数据只有不到 300 毫秒