The ripple effect works as expected when in landscape mode, but as soon as I rotate a device to portrait, the ripple effect is lost. I don't see a ripple anywhere in view. If I rotate back to landscape, the ripple effect is back. I suspect it might be something to do with the fact that I am not destroying the view upon rotation. Unfortunately, due to another library which I must use, I can't destroy the view upon rotation.
So in my AndroidManifest.xml, the configChanges are:
I've also set app:rv_centered to true just to see if the ripple was showing up somewhere else. It shows centered in landscape, but once again I don't see it in portrait.
Hi,
The view is destroyed after a rotation and the ripple effect is lost. If you can't see it in portrait I think that your layout has an issue. Please take a look to the sample for more details
The ripple effect works as expected when in landscape mode, but as soon as I rotate a device to portrait, the ripple effect is lost. I don't see a ripple anywhere in view. If I rotate back to landscape, the ripple effect is back. I suspect it might be something to do with the fact that I am not destroying the view upon rotation. Unfortunately, due to another library which I must use, I can't destroy the view upon rotation.
So in my AndroidManifest.xml, the configChanges are:
And my implementation of the rippleView in code is:
I've also set app:rv_centered to true just to see if the ripple was showing up somewhere else. It shows centered in landscape, but once again I don't see it in portrait.