getMeasureWidth与getWidth的区别 getMeasureWidth 在measure()过程结束后就可以获取到对应的值通过setMeasuredDimension()方法来进行设置的 getWidth 在layout()过程结束后才能获取到通过视图右边的坐标减去坐标的坐标计算出来的