I have a listView. Each list item is clickable. Each list item is a layout by itself.
On a button press I present a popupWindow on top of listView. I have set
popupWindow.setOutsideTouchable(true);
popupWindow.setBackgroundDrawable(new BitmapDrawable(getResources(), ""));
PopupWindow.OnDismissListener dismissListener = new PopupWindow.OnDismissListener(){
@Override
public void onDismiss() {
popWindowVisible = false;
popwindow_dim_bg.setVisibility(View.GONE);
}
};
popupWindow.setOnDismissListener(dismissListener);
Now my problem is when I touch outside of popupWindow onto listView, android executes the click listener of listView item
Whereas my desired behavior is to just dismiss popup if present other let the click go thru.
I tried setOnTouchListener(retu true) on listView, but that did not help.
Can you help me resolve this issue?
