Drawable drawable = getResources().getDrawable(R.mipmap.icon_expand_view);
drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight()); //设置边界
mTvExpand.setCompoundDrawables(null, null, drawable, null);
直接通过mTvExpand.setCompoundDrawables(null, null, drawable, null);是没效果的,必须像上面这样设置