Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

SlideFrameHolder.OnSliderClickListener Doesn't Work on Only 1 Item in SliderLayout #3

Open
jackcsk opened this issue Sep 13, 2016 · 1 comment
Assignees
Labels

Comments

@jackcsk
Copy link

jackcsk commented Sep 13, 2016

If there is only 1 SlideFrameHolder in SliderLayout, the OnSliderClickListener does not trigger.
Current workaround is to set OnTouchListener for SliderLayout

@jackcsk jackcsk added the bug label Sep 13, 2016
@jackcsk jackcsk self-assigned this Sep 13, 2016
@jackcsk
Copy link
Author

jackcsk commented Sep 13, 2016

In addition, to prevent multiple calls, explicitly check for motionEvent.getAction(), i.e.:

if (motionEvent.getAction() == MotionEvent.ACTION_UP)

in onTouchListener, and returns true to consume the event.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant