show
Shows view as though it is a pop-up, that means it is placed atop all other views in the app.
show(view) {
it.center eq parent.center
// more constraints to avoid popup going outside parent if desired
}Return
the same view provided
Parameters
to be shown
used to position view
Shows view as though it is a pop-up, that means it is placed atop all other views in the app. The given constraints include details about the bounds of relativeTo, which allows view to be positioned relative to it.
show(view, other) { popup, anchor ->
popup.top eq anchor.bottom + 2
popup.centerX eq anchor.center.x
// more constraints to avoid popup going outside parent if desired
}Return
the same view provided
Parameters
to be shown
is the View the popup will be positioned relative to
used to position view
Shows view as though it is a pop-up, that means it is placed atop all other views in the app. The given constraints include details about the bounds of relativeTo, which allows view to be positioned relative to it.
show(view, other) { popup, anchor ->
popup.top eq anchor.bottom + 2
popup.centerX eq anchor.center.x
// more constraints to avoid popup going outside parent if desired
}Return
the same view provided
Parameters
to be shown
this View's coordinate space
is the Rectangle (within relativeTo's coordinates) the popup will be positioned relative to
used to position view