2012-08-01 23 views

回答

1
ImageView pic = (ImageView) findViewById(R.id.image); 
URL img_url = new URL("<Your url>"); 
Bitmap bmp = BitmapFactory.decodeStream(img_url.openConnection().getInputStream()); 
pic.setImageBitmap(bmp); 

替换为您的实际URL并在xml中创建一个imageview。瞧!你很好走。

相关问题