地址:https://github.com/loopj/android-smart-image-view
1.若使用自己扩展的控件,
在布局文件中必须使用全类名(包名+类名)
<com.loopj.android.image.SmartImageView>
2.在源码中定位控件强转为SmartImageView类型
SmartImageView iv = (SmartImageView) view.findViewById(R.id.icon);
3.调用setImageUrl(String url)为控件设置网络图片
iv.setImageUrl(url);