📅  最后修改于: 2022-03-11 14:56:24.553000             🧑  作者: Mango
Drawable img = getContext().getResources().getDrawable(R.drawable.smiley);
txtVw.setCompoundDrawablesWithIntrinsicBounds(img, null, null, null);