Java tutorial
//package com.java2s; import android.view.View; public class Main { private static boolean shouldStop(View fullscreenView) { return !(fullscreenView.getParent() instanceof View); } }