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);

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

posted @ 2015-08-16 09:11  phlsheji  阅读(912)  评论(0编辑  收藏  举报