//这是图片地址
String imageUrl = "http://139.224.43.42/medical/Uploads/head/07c3b4de0173f0128d6c2ec78c8e3828.jpg";
1、修改你的main.xml文件如下:<?xml version="1.0" encoding="utf-8"?>
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
android:id="@+id/imview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"/>
/>
Step2
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ImageView imView = (ImageView) findViewById(R.id.imview);
imView.setImageBitma