TextView——setCompoundDrawables说明

Drawable drawable = mContext.getResources().getDrawable(R.drawable.duringtime);

 drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight());//必须设置图片大小,否则不显示

 holder.time.setCompoundDrawables(drawable, null, null, null);

版权声明:本文博客原创文章,博客,未经同意,不得转载。

原文地址:https://www.cnblogs.com/bhlsheji/p/4733615.html