Scaling and casting animations for dialogs based on X and Y

I am trying to animate the dialog for entering and exiting animation through MapView as follows: after the user executes longPress in the OverlayItem MapView, the Dialog should scale and translate from the longPress' X and Y coordinates to the center of the screen. Similarly, when the user rejects the dialog, he must scale and translate to the X and Y coordinates of which he was originally.

My biggest problem is that I cannot find a way to start the animation for the given X and Y (and I'm not sure if this can be done either).

Any help was appreciated.

+3
source share

All Articles