Android:图片显示为正方形
public class SquareImageView extends androidx.appcompat.widget.AppCompatImageView { public SquareImageView(@NonNull Context context) { super(context); } public SquareImageView(@NonNull Context context, @Nullable AttributeSet attrs) {.