Is it possible to obtain the X-Y coordinates of a home screen widget? I need to display a pop-up relative to the position of the widget, so I need to get the X and Y coordinates.
Thank you
Is it possible to obtain the X-Y coordinates of a home screen widget? I need to display a pop-up relative to the position of the widget, so I need to get the X and Y coordinates.
Thank you
It's part of the Intent used when clicking a widget. Just call getSourceBounds() on the Intent used to launch your Activity.