user435739
user435739

Reputation:

How to trigger dismiss of a popup window android

I have a popupwindow class, which is used to display a popupwindow by clicking a button on the MainActivity.

Now the popup window has basically a listview. THe onItemClick Handler is in the derived class of popupWindow.

My Question is how to trigger the dismiss of popupWIndow from onItemClickHandler of the derived class, so that the memory leak would not happen.

Upvotes: 0

Views: 125

Answers (1)

user435739
user435739

Reputation:

I used plain messages and handleMessage and it worked

Upvotes: 1

Related Questions