Example usage for android.view ViewGroup getClipChildren

List of usage examples for android.view ViewGroup getClipChildren

Introduction

In this page you can find the example usage for android.view ViewGroup getClipChildren.

Prototype

@ViewDebug.ExportedProperty(category = "drawing")
public boolean getClipChildren() 

Source Link

Document

Returns whether this group's children are clipped to their bounds before drawing.

Usage

From source file:Main.java

private static List<Boolean> setAncestralClipping(@NonNull View view, boolean clipChildren, List<Boolean> was) {
    if (view instanceof ViewGroup) {
        ViewGroup group = (ViewGroup) view;
        was.add(group.getClipChildren());
        group.setClipChildren(clipChildren);
    }/*from www .  j a  va 2s  .c o m*/
    ViewParent parent = view.getParent();
    if (parent != null && parent instanceof ViewGroup) {
        setAncestralClipping((ViewGroup) parent, clipChildren, was);
    }
    return was;
}