在 vh.tvAddr.setCompoundDrawables(getResources().getDrawable(R.drawable.ic_real_state_loc), null, null,
null);之前需要设置图片的宽高
drawable.setBounds(0, 0, 36,36);
在 vh.tvAddr.setCompoundDrawables(getResources().getDrawable(R.drawable.ic_real_state_loc), null, null,
null);之前需要设置图片的宽高
drawable.setBounds(0, 0, 36,36);
转载于:https://www.cnblogs.com/jinglecode/p/5600964.html