kanytu / android-parallax-recyclerview

An adapter which could be used to achieve a parallax effect on RecyclerView.
Apache License 2.0
1.61k stars 284 forks source link

setOnClickEvent() never called #35

Closed shineangelic closed 9 years ago

shineangelic commented 9 years ago

I simply want to detect clicks over parallaxAdapter items.

Maybe I'm missing something, I can't get setOnClickEvent() to work.

mAdapter.setOnClickEvent(new ParallaxRecyclerAdapter.OnClickEvent() { @Override public void onClick(View view, int i) { //This is never called } });

Please note that mAdapter.setOnParallaxScroll(new ParallaxRecyclerAdapter.OnParallaxScroll() ... ) works perfectly and I have onBindViewHolderImpl(), onCreateViewHolderImpl(), etc. implemented and working inside the adapter impl

shineangelic commented 9 years ago

BTW I am quite sure the code was working in previous lib version. Now I'm using v1.3

kanytu commented 9 years ago

Hum. I'll take a look at it tomorrow. That should be easy to fix.

kanytu commented 9 years ago

This should be fixed on v1.4

Thanks for your report :)

shineangelic commented 9 years ago

yes, I confirm it's working now. Thank you for support