【发布时间】:2016-06-23 01:10:48
【问题描述】:
从网络加载图像时遇到问题。当我用 Glide 击中一些 URL 时,它没有显示图像。例如:
网址是 UTF-8 编码的。
滑翔的用法:
Glide.with(this.context).load(currentRecipe.getRecipeThumbnailUrl()).into(categoryIcon);
ImageView的部分布局:
<ImageView android:id="@+id/categoryPic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
在控制台中,我得到以下信息: SkImageDecoder::Factory 返回 null
我已经四处搜索,但没有找到任何有用的解决方案。
设备:小米红米1S 安卓版本:4.4.4 滑翔版本:3.7.0
【问题讨论】:
-
我不认为你可以使用 wrap_content 作为宽度和高度,Glide 需要知道要加载的大小。尝试设置一个固定大小,看看是否会加载您的图像,如果可以,那么您知道您需要做什么。
标签: android image-loading android-glide