Android Modeless Popupwindow

I cannot create a modess popup on Windows. I can create popupwindow just fine and it will receive events. However, I need it to receive its events, and if the user clicks outside the popup, the activity receives events as usual.

I really don't want to use the dialog, and I'm looking for where the control appears, and the user can choose to click on it or select a click on something else in the activity.

I read about FLAG_NOT_TOUCH_MODAL, but I can't get this to work with a popup.

Any ideas?

+5
source share
1 answer

Take a look at this example / library

https://github.com/lupidan/PopoverView

, :

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

onActivityResult (...)

0

All Articles