RippleEffect
RippleEffect copied to clipboard
Steals OnClick when creating a compound view with it on the layout
Basically what I'm doing is extending RelativeLayout to create a new custom "ViewGroup" and inflating the layout that has the ripple view on it.
When I click on the compound view the click is not received by the compound view but by the RippleView so there is no way to catch the event unless I declare a android:OnClick property on the RippleView and handle it on the activity that has the custom ViewGroup.
Have you found a solution to this?
Same problem
try this in rippleView
android:descendantFocusability="afterDescendants"
then rippleView will be the last one to get the click
same here, @traex can you help us ?
@BriceN You can clone the onClickEvent. Just extend the RippleView class and add a listener to know when the ripple end.