1,View中getWidth(),getLayoutParams.width,getMeasureedWidth()的区别 2,setCompoundDrawables和setCompoundDrawablesWithIntrinsicBounds 的区别 1,View中getWidth(),getLayoutParams.width,getMeasureedWidth()的区别 getWidth()在layout执行完后才能获取宽度,在onMeasure()方法中是拿不到的 而固定宽度,可…