Drawable drawable = mContext.getResources().getDrawable(R.drawable.duringtime);
drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight());//必须设置图片大小,否则不显示
holder.time.setCompoundDrawables(drawable, null, null, null);TextView——setCompoundDrawables用法
原文:http://blog.csdn.net/lian_1988/article/details/41282985