public void setChecked(boolean enable) {
        if (!enable) {
            setImageResource(R.drawable.ic_preview_radio_on);
            mDrawable = getDrawable();
            mDrawable.setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);
        } else {
            setImageResource(R.drawable.ic_preview_radio_off);
            mDrawable = getDrawable();
            mDrawable.setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_IN);
        }
    }
author : engineer
e-mail : yingkongshi11@gmail.com
time   : 2018/4/26
desc   :
version: 1.0
app/src/main/java/home/smart/fly/animations/customview/CustomTintImageView.java