Code example for FrameLayout

Methods: setSystemUiVisibility

0
        @SuppressWarnings("deprecation") 
        private void hideUI() { 
            if (Build.VERSION.SDK_INT >= 16)
                mCustomViewContainer.setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN);
            else if (Build.VERSION.SDK_INT >= 14)
                mCustomViewContainer.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
            else 
                mCustomViewContainer.setSystemUiVisibility(View.STATUS_BAR_HIDDEN);
        } 
 
        @TargetApi(11) 
        @SuppressWarnings("deprecation") 
        private void showUI() { 
            if (Build.VERSION.SDK_INT >= 14)
                mCustomViewContainer.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
            else 
                mCustomViewContainer.setSystemUiVisibility(View.STATUS_BAR_VISIBLE);
        } 
 
    } 
Connect your IDE to all the code out there  Get Codota for Java