在 vh.tvAddr.setCompoundDrawables(getResources().getDrawable(R.drawable.ic_real_state_loc), null, null,
null);之前需要设置图片的宽高
drawable.setBounds(0, 0, 36,36);
本文介绍在使用vh.tvAddr.setCompoundDrawables方法前设置图片尺寸的方法,确保图片的宽高为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
2万+

被折叠的 条评论
为什么被折叠?