getSize

open fun getSize(cb: SizeReadyCallback)

Determines the size of the view by first checking getWidth and getHeight. If one or both are zero, it then checks the view's LayoutParams. If one or both of the params width and height are less than or equal to zero, it then adds an android.view.ViewTreeObserver.OnPreDrawListener which waits until the view has been measured before calling the callback with the view's drawn width and height.

Parameters

cb

The callback that must be called when the size of the target has been determined