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

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

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

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

相关文章:

  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
相关资源
相似解决方案