#drawableLeft

安卓在代码中设置TextView的drawableLeft、drawableRight、drawableTop、drawableBottom

DrawablerightDrawable=getResources().getDrawable(R.drawable.icon_new);//调用setCompoundDrawables时,必须调用Drawable.setBounds()方法,否则图片不显示rightDrawable.setBounds(0,0,ri...