我正在try 创建一个Appwidget,使用带有.SVG图像支持的Glance Jetpack.
我可以使用以下工具下载位图
ImageRequest.Builder(this)
.data(url)
.decoderFactory(SvgDecoder.Factory())
...正如日志(log)的最后一行所示,有一个分配给var coinImage
的非空位图.
The problem is, the widget doesn't seem to re-compose after the bitmap's value changes. I'm stuck seeing the circularProgressSpinner. What am I missing/doing wrong? Am I missing something foundational with the composition's state?
我的代码和日志(log)位于: https://gist.github.com/Alvtag/5bd46a2007e6c4f382d431e43aa96e80个
如有任何帮助,我们不胜感激!