I know that I can make the ActionBar overlay using requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY) and can toggle/show the status bar in my screen (by switch
requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY)
Put this method in onCreate() method activity:
getWindow().getDecorView().setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
refer: link