Android 滑动不';不加载图像

Android 滑动不';不加载图像,android,image-loading,android-glide,Android,Image Loading,Android Glide,从web加载图像时出现问题。当我用Glide点击一些URL时,它没有显示图片。例如: URL是UTF-8编码的 滑翔机的使用: Glide.with(this.context).load(currentRecipe.getRecipeThumbnailUrl()).into(categoryIcon); ImageView布局的一部分: <ImageView android:id="@+id/categoryPic" android:layout_width="wrap_conten

从web加载图像时出现问题。当我用Glide点击一些URL时,它没有显示图片。例如:

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"
罗伯特·帕普说:

工厂返回null通常意味着 BitmapFactory.decode无法确定如何处理输入

因此,我认为在这一点上,您的图像名称:
sütés+1146.jpg
不能由
位图工厂。解码。

希望这有帮助

罗伯特·帕普说:

工厂返回null通常意味着 BitmapFactory.decode无法确定如何处理输入

因此,我认为在这一点上,您的图像名称:
sütés+1146.jpg
不能由
位图工厂。解码。


希望这有帮助

我不认为你可以使用包裹内容的宽度和高度,Glide需要知道的大小加载。试着设置一个固定的大小,看看它是否加载了你的图像,如果加载了,那么你知道你需要做什么。我不认为你可以使用wrap_内容的宽度和高度,Glide需要知道加载的大小。尝试设置一个固定大小,看看是否加载了图像,如果加载了,那么您就知道需要做什么。