Drawable rightDrawable = getResources().getDrawable(R.drawable.icon_new);
rightDrawable.setBounds(0, 0, rightDrawable.getMinimumWidth(), rightDrawable.getMinimumHeight());
textview.setCompoundDrawables(null, null, rightDrawable, null);
Drawable rightDrawable = getResources().getDrawable(R.drawable.icon_new);
rightDrawable.setBounds(0, 0, rightDrawable.getMinimumWidth(), rightDrawable.getMinimumHeight());
textview.setCompoundDrawables(null, null, rightDrawable, null);
本文标题:TextView 代码设置drawableLeft、drawab
本文链接:https://www.haomeiwen.com/subject/tzddzttx.html
网友评论