动态修改drawableLeft的图片

Drawable drawableLeft = mContext.getDrawable(R.mipmap.user_enterprise_check);

drawableLeft.setBounds(0, 0, drawableLeft.getMinimumWidth(), drawableLeft.getMinimumHeight());

holder.mTvIsCheck.setCompoundDrawables(drawableLeft, null, null, null);

holder.mTvIsCheck.setCompoundDrawablePadding(10)

    原文作者:zhengLH
    原文地址: https://www.jianshu.com/p/692b0de9d24b
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞