measureInWindow

open fun measureInWindow(tag: Int, outputBuffer: Array<Int>)

Returns the coordinates of a view relative to the window (not just the RootView which is what measure will return)

Parameters

tag

- the tag for the view

outputBuffer

- output buffer that contains [x,y,width,height] of the view in coordinates relative to the device window