-1

I have a RecyclerViewClickListener.RecyclerTouchListener and on that @onClick override method, I sat Intent to go another activity. But the problem is on that RecyclerViewClickListener.RecyclerTouchListener there is one image view also and I implemented onClickListener of that InmageView so that it will open one dialog box.

Now, when I click on that ImageView, 2 things happened at same time. 1.Opened Dialog box 2.It is going to another activity also, because of Intent.

How can I fix?

1 Answers1

0

Try this

holder.hamburgerMenu.setOnTouchListener(new OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
        if(event.getAction() == MotionEvent.ACTION_UP){
            if (menuInterface != null) {
                menuInterface.onClickHamburger(position);
            }
            return true;
        }
        return false;
    }
});
Ranjan
  • 1,096
  • 10
  • 22
  • @Rajan it is not working. When I click on that Image, it is not opening Dialog box! should I've to do something else on activity, where call back is coming? – Pooja Singh Feb 03 '19 at 10:53