Drawable drawable = context.getResources().getDrawable(list.get(position).getPicture()); drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight()); holder.payname.setCompoundDrawables(null, drawable, null, null);
Android TextView——setCompoundDrawables用法
最新推荐文章于 2024-02-02 17:57:10 发布
本文介绍如何在Android应用中为TextView设置复合图片,通过使用getDrawable方法获取资源,并设置图片的边界,最后将其显示在TextView上。

1377

被折叠的 条评论
为什么被折叠?



