Skip to content Skip to sidebar Skip to footer

Imageview On Click Not Firing At The 2nd Click

I want to close a popup menu on clicking a imageview.But it is not working. menuicon.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) {

Solution 1:

You need to call setModal(false) of mPopupMenu. It will call setFocusable of inner PopupWindow and allow you to get events in the background window.


Post a Comment for "Imageview On Click Not Firing At The 2nd Click"