Skip to main content

Posts

Showing posts from January, 2017

Android fullscreen view

Hide action bar with style <style name= "AppTheme.NoActionBar" > <item name= "windowActionBar" > false </item> <item name= "windowNoTitle" > true </item> </style> Set this theme in manifest These lines will hide the status bar requestWindowFeature ( Window . FEATURE_NO_TITLE ); getWindow (). setFlags ( WindowManager . LayoutParams . FLAG_FULLSCREEN , WindowManager . LayoutParams . FLAG_FULLSCREEN ); Or View decorView = getWindow().getDecorView() ; int uiOptions = View. SYSTEM_UI_FLAG_FULLSCREEN ; decorView.setSystemUiVisibility(uiOptions) ;