diff --git a/library/src/main/java/com/balysv/materialripple/MaterialRippleLayout.java b/library/src/main/java/com/balysv/materialripple/MaterialRippleLayout.java
index <HASH>..<HASH> 100644
--- a/library/src/main/java/com/balysv/materialripple/MaterialRippleLayout.java
+++ b/library/src/main/java/com/balysv/materialripple/MaterialRippleLayout.java
@@ -537,6 +537,10 @@ public class MaterialRippleLayout extends FrameLayout {
             ViewGroup parent = (ViewGroup) child.getParent();
             int index = 0;
 
+            if (parent != null && parent instanceof MaterialRippleLayout) {
+                throw new IllegalStateException("MaterialRippleLayout could not be created: parent of the view already is a MaterialRippleLayout");
+            }
+
             if (parent != null) {
                 index = parent.indexOfChild(child);
                 parent.removeView(child);
Do not allow stacking MaterialRippleLayouts

Contributed by @joaogouveia