Could anyone please tell me that how is it possible to show and hide the same popup window using a single button.
suggestions welcome.
Popup means that when i clicked on a menu button it showing a popup window which contains the listview and when i clicked on the menu button again and touches anywhere on the screen,the popwindow should disappear.
I use the bellow code to do that. In your case the
menuButtonis your single button andcontentis your listview. Theanchorcan be themenuButtonitself or anotherView.