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.