setBounds

fun Dialog.setBounds(bounds: Rect)

Updates the size of the Window of the receiving Dialog. bounds is expected to be in global screen coordinates, as returned from View.getScreenRect.

See also