Android TextView——setCompoundDrawables用法

 
 

Drawable drawable = context.getResources().getDrawable(list.get(position).getPicture());

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

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

参考文章链接:http://longshuai2007.blog.163.com/blog/static/142094414201341321640635/

猜你喜欢

转载自blog.csdn.net/yijiaodingqiankun/article/details/80333782