为什么有时候有个方形背景,有时候显示正常的圆形
时间: 2015-05-26来源:开源中国
前景提要
HDC调试需求开发(15万预算),能者速来!>>>
这个人的头像,有时候会有方形的背景(图片左上角位置),即使多刷新几遍,还是改不回来,然后退出,重新进去 ,又回复到正常的圆形头像,方形背景消失,请问这是为什么哦?这人头像的imageview是一个自定义的圆形头像imageView,这头像使用的xutil加载头像的办法实现的,见下面代码,
hodler.teacherImageView.setTag(uri);
bitmapUtils.display(hodler.teacherImageView, uri,new BitmapLoadCallBack<View>() {
@Override
public void onLoadCompleted(View container, String url,
Bitmap bitmap, BitmapDisplayConfig config,
BitmapLoadFrom from) {
if(hodler.teacherImageView.getTag().equals(url)){
hodler.teacherImageView.setImageBitmap(bitmap);
}

}
@Override
public void onLoadFailed(View container, String url,
Drawable drawable) {
// TODO Auto-generated method stub

}
});

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行