Java tutorial
//package com.java2s; import android.support.annotation.NonNull; import android.view.View; import android.view.ViewGroup; public class Main { public static void disableParentsClip(@NonNull View view) { while (view.getParent() != null && view.getParent() instanceof ViewGroup) { ViewGroup viewGroup = (ViewGroup) view.getParent(); viewGroup.setClipChildren(false); viewGroup.setClipToPadding(false); view = viewGroup; } } }