measureLayout

open fun measureLayout(tag: Int, ancestorTag: Int, errorCallback: Callback, successCallback: Callback)

Measures the view specified by tag relative to the given ancestorTag. This means that the returned x, y are relative to the origin x, y of the ancestor view. Results are stored in the given outputBuffer. We allow ancestor view and measured view to be the same, in which case the position always will be (0, 0) and method will only measure the view dimensions.

NB: Unlike measure, this will measure relative to the view layout, not the visible window which can cause unexpected results when measuring relative to things like ScrollViews that can have offset content on the screen.