public void setBorderColor(ColorStateList colors) {
        if (borderColor.equals(colors)) { return; }

        borderColor =
                (colors != null) ? colors : ColorStateList.valueOf(RoundedDrawable.DEFAULT_BORDER_COLOR);
        updateDrawableAttrs();
        updateBackgroundDrawableAttrs(false);
        if (borderWidth > 0) {
            invalidate();
        }
    }
Controls how the image should be resized or moved to match the size
of this ImageView.

@param scaleType The desired scaling mode.
@attr ref android.R.styleable#ImageView_scaleType
sample/src/main/java/com/etiennelawlor/quickreturn/views/RoundedImageView.java