eowise / recyclerview-stickyheaders

DEPRECATED. Android library that integrate sticky section headers in your RecyclerView
http://eowise.github.io/recyclerview-stickyheaders
MIT License
960 stars 148 forks source link

ClickListeners on headers not working? #9

Closed touchbee closed 9 years ago

touchbee commented 9 years ago

I'm trying to register a click listener on the header view or any of it's child views. However, for some reason they don't seem to be called. Is this a known issue? Have you tried that before?

Thanks, Stefan

leruaa commented 9 years ago

Click listeners on headers are not supported right now. I plan to add this feature in 0.5.0 release.

touchbee commented 9 years ago

Can you give me any pointers on what the issue is? Unfortunately I need to implement this now and can't wait for the 0.5 release :-( How would you implement this?

Thanks!

leruaa commented 9 years ago

The problem is that header views are not added in the views tree. They are only drawed on a canvas as RecyclerView item decorations.

There is another sticky headers lib for RecyclerViews that allows click on headers (See there). I think I will draw on it.