如果我想使应用在2G网络的情况,不加载未加载过的网络图片(已经加载过的图片正常加载),在非2G网络的情况下,加载图片。
if
(is2G) {
ImageLoader. getInstance().pause();
// 无图模式
}
else
{
ImageLoader. getInstance().resume();
// 有图模式
}
在
ImageView的xml中必须加入
android:scaleType
=
"centerCrop" 否则以上语句不起作用。