希望您做得好,我正在开发一个应用程序,因为我想将一个图片从url加载到一个imageView中,我使用了Picasso,但是它给了我一个明确的例外,我已经检查并调试了正确的url是否来了和它的完美,我仍然面临着这个问题,有人能帮我解决这个问题吗?我的代码如下:代码
Picasso.with(NewProfileActivity.this)
.load(mUser.userAvatarPath)
.into(iv_profile);
这里,"iv_profile“是imageView,mUser.userAvatar路径是图像url。
发布于 2016-05-09 00:57:14
尝尝这个
Picasso.with(this).load("http://api.androidhive.info/json/movies/1.jpg").placeholder(getResources().getDrawable(R.drawable.ic_launcher)).into(imageViewCenter);
发布于 2016-05-09 04:46:17
Picasso.with(this).load("http://city/1.jpg").placeholder(getResources().getDrawable(R.drawable.ic_city)).into(imageViewCity);
发布于 2017-07-03 03:51:06
请检查您的图像URL,如果它不包含http://前缀,那么图像将不会被加载。确保图像URL以http://为前缀
https://stackoverflow.com/questions/37111009
复制相似问题