-
{@hide}
-
同理
*/
protected int mRight; -
所以,这只是一个通过加减得到的一个相对值,并不是真正测量得到的尺寸;
getMeasuredWidth
- Like {@link #getMeasuredWidthAndState()}, but only returns the
- raw width component (that is the result is masked by
- {@link #MEASURED_SIZE_MASK}).
- @return The raw measured width of this view. 原始宽度
*/
public final int getMeasuredWidth() {
return mMeasuredWidth & MEASURED_SIZE_MASK;
}
- 这里有两个变量,一个是 mMeasuredWidth,一个是 MEASURED_SIZE_MASK
/**
- Bits of {@link #getMeasuredWidthAndState()} and
- {@link #getMeasuredWidthAndState()} that provide the actual(真实的) measured size.
*/
public static final int MEASURED_SIZE_MASK = 0x00ffffff;