开发者

Android Modeless Popupwindow

I can't seem to create a modeless popupwindow in Android. I can create a popupwindow just fine, and it will receive events. However, what I need is for it to receive its events, and if the user clicks outside the popup window, the activity receives events as per normal.

I don't really want to use a dialog, and I'm looking for a look where a control开发者_运维技巧 pops up, and the user can choose to click on that or choose to click on something else in the activity.

I've been reading about FLAG_NOT_TOUCH_MODAL, but I can't seem to get this wot work with a popupwindow.

Any ideas?


Take a look at this example/library

https://github.com/lupidan/PopoverView

An other option that i use in my projects is:

<activity android:name="com.your.Activity" android:theme="@android:style/Theme.Dialog"></activity>

and catch the user selections with onActivityResult(...)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜