首页 > 其他 > 详细

TextView——setCompoundDrawables说明

时间:2015-08-16 09:21:18      阅读:152      评论:0      收藏:0      [点我收藏+]
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://www.cnblogs.com/bhlsheji/p/4733615.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!