I\'m implementing a drag and drop for an Android application. In order to know if the drop happens inside the drop target, I need to know the bounding rectangle of the drop
Using getGlobalVisibleRect:
getGlobalVisibleRect
val rect = Rect() view.getGlobalVisibleRect(rect) val isContainedInView = rect.contains(x, y)