package com.kabouzeid.gramophone.views;

import android.content.Context;
import android.support.annotation.NonNull;
import android.util.AttributeSet;
import android.widget.ImageView;

/**
 * @author Karim Abou Zeid (kabouzeid)
 */
public class HeightFitSquareImageView extends ImageView {

    public HeightFitSquareImageView(Context context) {
        super(context);
    }

    public HeightFitSquareImageView(@NonNull Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public HeightFitSquareImageView(@NonNull Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        //noinspection SuspiciousNameCombination
        super.onMeasure(heightMeasureSpec, heightMeasureSpec);
    }

}
