我有了这个代码的Android - 毕加索只显示占位符,而不是从URL中的图像
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ImageView image_view = (ImageView)findViewById(R.id.imageView1);
Picasso.with(getApplicationContext()).load("http://nuclearpixel.com/content/icons/2010-02-09_stellar_icons_from_space_from_2005/earth_128.png").placeholder(R.drawable.ic_launcher).noFade().into(image_view);
}
,我想查看我的ImageView从URL中的形象。不过,而不是像只占位符显示。可能是什么问题?
是否日志显示你什么? – 2Dee 2014-09-11 08:04:31
它会显示占位符图像,直到毕加索完成下载图像... – 2014-09-11 08:07:44
@ 2Dee不,它不:/ – 2014-09-11 08:24:51