在代码中设置Textview的drawableRight

代码如下:

<span style="font-size:14px;">private Drawable fire;
fire = context.getResources().getDrawable(R.drawable.fire);
fire.setBounds(0, 0, fire.getMinimumWidth() * 4 / 5,fire.getMinimumHeight() * 4 / 5);
t1.setCompoundDrawables(null, null, fire, null);</span>


你可能感兴趣的:(textview)