@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    public void setChecked(boolean enable){
        if (!enable) {
            setImageResource(R.drawable.ic_preview_radio_on);
            setImageTintList(ColorStateList.valueOf(Color.RED));
        } else {
            setImageResource(R.drawable.ic_preview_radio_off);
            setImageTintList(ColorStateList.valueOf(Color.WHITE));
        }
    }
author : engineer
e-mail : yingkongshi11@gmail.com
time   : 2018/4/25
desc   :
version: 1.0
app/src/main/java/home/smart/fly/animations/customview/CustomImageView.java