Android-ObservableScrollView icon indicating copy to clipboard operation
Android-ObservableScrollView copied to clipboard

Incorrect onItemClick occured when using FlexibleSpaceWithImageWithViewPagerTab2Activity

Open youxiang opened this issue 10 years ago • 3 comments

I register a OnItemClickListener to ObservableGridView in FlexibleSpaceWithImageWithViewPagerTab2Activity's fragment, but when I scrolling, the item click event occured incorrectly. I'm sure it's a bug of your library but I have no idea how to resolve it.

youxiang avatar Jun 09 '15 02:06 youxiang

I also encountered the same problem.

Thur4day avatar Jul 10 '15 02:07 Thur4day

Do 2 things :

  1. comment this line from TouchInterceptionFrameLayout event.setLocation(ev.getX(), ev.getY());

    on this code:

                    if (mDownMotionEventPended) {
                        mDownMotionEventPended = false;
                        MotionEvent event = MotionEvent.obtainNoHistory(mPendingDownMotionEvent);
                        //event.setLocation(ev.getX(), ev.getY());
                        duplicateTouchEventForChildren(ev, event);
                    }
    
  2. for the ListView (or whatever you use) , call this instead of what you have:

    mListView.setTouchInterceptionViewGroup(parentOfViewPager)

AndroidDeveloperLB avatar Aug 18 '15 08:08 AndroidDeveloperLB

Same problem here and cant fix it

GilberAlvarado avatar Nov 20 '17 23:11 GilberAlvarado