TextView-setCompondDrawables用法

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

 drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight());

textview.setCompoundDrawables(drawable, null, null, null);

 

//必须设置图片大小,否则不显示

posted @ 2015-10-09 11:24  jkx  阅读(197)  评论(0编辑  收藏  举报