public final void measure (int widthMeasureSpec, int heightMeasureSpec)
Added in API level 1
This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters.
The actual measurement work of a view is performed in onMeasure(int,
int), called by this method. Therefore, only onMeasure(int,
int) can and must be overridden by subclasses.
Parameters
widthMeasureSpec
Horizontal space requirements as imposed by the p......
阅读全文