开发者

Showing a popup dialog or custom popup view on click of a widget

Am trying to show a popup dialog or custom view on clicking of the widget (Something similar to quick contact badge). Am able to launch the Quick Contact badge on cli开发者_StackOverflow中文版ck of the widget but am not able to display this right next to the widget :(

Could you anyone give me any example source code to display a pop up dialog right next to the widget?


I found the answer for this...

The quick contact badge can be displayed right next to the widget by getting the source bounds of the widget from intent that is used to launch the widget.

The method to be used for this is :-

intent.getSourceBounds();

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜