Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

Section loses OnClickListener when pinned #15

Closed
dannyroa opened this issue Aug 13, 2013 · 3 comments
Closed

Section loses OnClickListener when pinned #15

dannyroa opened this issue Aug 13, 2013 · 3 comments
Assignees
Labels

Comments

@dannyroa
Copy link

The Section that I want to pin has an OnClickListener.

When it is not pinned at the top, the listener works. However, when it is pinned, the listener doesn't work and responds to the Listeners of the view behind the Pinned Section instead.

@ghost ghost assigned sergejsha Aug 14, 2013
@sergejsha
Copy link
Owner

I have just added two options. You can either use OnClickListener attached to the pinned view in adapter or you can use onListItemClick() function of ListActivity or LiftFragment. Both options must work. Would you please check and let me know whether it works for you now. Thanks!

@geynen
Copy link

geynen commented Jun 4, 2014

I have a button within this pineapple item, but the OnTouch event of the item runs before the onClick event of the button.

They can help to prevent the event from propagating.

@bytebeats
Copy link

bytebeats commented Nov 14, 2018

@beworker It didn't work, use OnClickListener attached to the pinned view in adapter.
@geynen What's your alternative solution?

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

4 participants