I have a MapFragment
in which, upon clicking a marker I'm showing a PopupWindow
. I can't seem to get it to receive TouchEvent
s though.
Here's what I've got atm:
mPopupWindow.getContentView().setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
Log.d("msg", "PopupWindow onClick");
}
});
when invoking the particular PopupWindow:
mPopupWindow.setTouchable(true);
mPopupWindow.showAtLocation(mMapLinearLayout, x, y) //root is a subclass of LinearLayout
Haven't seen a message from the listener yet.
Edit: for your information: inside my window there are images that are loaded asynchronously