Android Popup Window dismisses when clicked outside

后端 未结 2 381
暗喜
暗喜 2021-01-12 22:59

I was hoping to get an answer to my problem I have at the moment.

I have a class which extends popup window. It works fine except I don\'t want the window to dismis

2条回答
  •  离开以前
    2021-01-12 23:51

    What are you using this PopupWindow for? It sounds like you use it in a more Dialog-ish way.

    That being said you'll probably have to look into using setTouchInterceptor and then creating your own OnTouchListener which you will use to check where the touch was performed (on the Popup or not).

提交回复
热议问题