parent

var parent: View?

View that contains this one as a child, or null. A top-level Views will also return null; but they will also have displayed == true; so parent alone isn't sufficient to determine whether a View is in the display hierarchy.