balysv / material-ripple

Android L Ripple effect wrapper for Views
Apache License 2.0
2.36k stars 479 forks source link

Child view's onClickListener within MaterialRippleLayout doesn't work #55

Closed shahidul2k9 closed 7 years ago

shahidul2k9 commented 8 years ago

Hi, I have custom list adapter of list view where each row is instantiated within "getView(int position, View convertView, ViewGroup parent)" method. The root view of each row is "MaterialRippleLayout" and it has some child views. There I set some click listener of child views. But "onClick(View v)" method is not being called when child view is clicked.

pengbs commented 8 years ago

I meet the same problem as you, I use it in expandListView.

chapeladmin commented 8 years ago

looks like with listviews the only click handler that works is setting the listview's setOnItemClickListener.

zirouan commented 8 years ago

I'm with the same problem. I have an item on my list that you click the item to open a detail screen, but if you click an image that exists in the item, open another screen.

If I use the library I can not use the onClick at a separate view.

Any tips?

Thanks,

callmepeanut commented 8 years ago

onClickListener is set on the child, you can see at #59