Drawable drawable = mContext.getResources().getDrawable(R.drawable.duringtime);
drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight());
textview.setCompoundDrawables(drawable, null, null, null);
//必须设置图片大小,否则不显示
时间: 2024-11-03 21:54:33