Which of the following is NOT true about onMeasure() method of class View?

Which of the following is NOT true about onMeasure() method of class View?
A . It measures the view and its contents to determine the measured width and height.
B . It is invoked by measure().
C . When overriding this method, a developer must call setMeasuredDimension().
D . It takes three parameters: the height, width, and the depth of the view.

Answer: D

Explanation:

Syntax: protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

onMeasure() measures the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overridden by subclasses to provide accurate and efficient measurement of their contents.

References:

http://developer.android.com/reference/android/view/View.html#onMeasure(int, int)

Latest AND-401 Dumps Valid Version with 228 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments