今天在代码中调用
textview.setCompoundDrawables(null, drawable, null, null),却发现不显示图片,只要在设置前面加上一句代码就行: drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), (int) (drawable.getMinimumHeight()))。
textview.setCompoundDrawables不显示图片
最新推荐文章于 2023-12-26 13:51:29 发布