private boolean isParentNotVisible(Element parent) {
        if (parent == null) {
            return false;
        }
        if (parent.getRect().left >= getMeasuredWidth()
                || parent.getRect().top >= getMeasuredHeight()) {
            return true;
        } else {
            return isParentNotVisible(parent.getParentElement());
        }
    }
Created by linjiang on 09/06/2018.

https://github.com/eleme/UETool/
pandora-core/src/main/java/tech/linjiang/pandora/inspector/ElementHoldView.java