i using code google hide action bar when run, application stop , throw error
unfortunately, app has stopped.
view decorview = getwindow().getdecorview(); int uioptions = view.system_ui_flag_fullscreen; decorview.setsystemuivisibility(uioptions); actionbar actionbar = getactionbar(); actionbar.hide();
step 1:replace
actionbar actionbar = getactionbar();
to
actionbar actionbar = getsupportactionbar();
Comments
Post a Comment