/**
* 高等于宽度的正方形imageView
*/
public class SquareRoundImageView extends NiceImageView {
public SquareRoundImageView(Context context) {
super(context);
}
public SquareRoundImageView(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
setMeasuredDimension(getMeasuredWidth(), getMeasuredWidth());
}
}