修复图片加载刷新后闪屏问题, 修复若干bug
This commit is contained in:
@ -69,7 +69,7 @@ public class ConcernContentUtils {
|
||||
DisplayUtils.dip2px(context, 2), DisplayUtils.dip2px(context, 4));
|
||||
lparams.weight = 1;
|
||||
imageView.setLayoutParams(lparams);
|
||||
ImageUtils.display(context.getResources(), imageView,
|
||||
ImageUtils.display(context.getResources(), imageView, width / 3 - DisplayUtils.dip2px(context, 4),
|
||||
ScalingUtils.ScaleType.CENTER_CROP, list.get(position));
|
||||
break;
|
||||
case 1:
|
||||
@ -78,7 +78,7 @@ public class ConcernContentUtils {
|
||||
lparams.setMargins(DisplayUtils.dip2px(context, 2), 0,
|
||||
DisplayUtils.dip2px(context, 2), DisplayUtils.dip2px(context, 4));
|
||||
imageView.setLayoutParams(lparams);
|
||||
ImageUtils.display(context.getResources(), imageView,
|
||||
ImageUtils.display(context.getResources(), imageView, lparams.width,
|
||||
ScalingUtils.ScaleType.CENTER_CROP, list.get(position));
|
||||
break;
|
||||
default:
|
||||
@ -89,7 +89,7 @@ public class ConcernContentUtils {
|
||||
DisplayUtils.dip2px(context, 2), DisplayUtils.dip2px(context, 4));
|
||||
lparams.weight = 1;
|
||||
imageView.setLayoutParams(lparams);
|
||||
ImageUtils.display(context.getResources(), imageView,
|
||||
ImageUtils.display(context.getResources(), imageView, width / 2 - DisplayUtils.dip2px(context, 4),
|
||||
ScalingUtils.ScaleType.CENTER_CROP, list.get(position));
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user