Example usage for android.view SurfaceView getParent

List of usage examples for android.view SurfaceView getParent

Introduction

In this page you can find the example usage for android.view SurfaceView getParent.

Prototype

public final ViewParent getParent() 

Source Link

Document

Gets the parent of this view.

Usage

From source file:Main.java

public static void stripView(SurfaceView view) {
    ViewParent parent = view.getParent();
    if (parent != null) {
        ((FrameLayout) parent).removeView(view);
    }/*from ww w  .j  ava  2s .  com*/
}