Code example for FrameLayout

Methods: postDelayed, setVisibility

0
                mKeyguardHost.postDelayed(new Runnable() {
                    public void run() { 
                        synchronized (KeyguardViewManager.this) {
                            lastView.cleanUp();
                            mKeyguardHost.removeView(lastView);
                        } 
                    } 
                }, 500); 
            } 
        } 
    } 
 
    /** 
     * @return Whether the keyguard is showing 
     */ 
    public synchronized boolean isShowing() { 
        return (mKeyguardHost != null && mKeyguardHost.getVisibility() == View.VISIBLE);
    } 
}