i have 2 fragments in activity, fa , fb. when click button in fa, fb replaces fa. fb google play store view, when open view app. image under transparent status bar. did adding code fb#oncreateview:
window w = getactivity().getwindow(); w.getdecorview().setsystemuivisibility( view.system_ui_flag_layout_stable | view.system_ui_flag_layout_fullscreen); w.setstatusbarcolor(color.transparent); when press back, fb removed , replace fa, everything's normal, toolbar under status bar. like:

whereas, should like: 
this looks when fragment first loaded.
is there way clear flags set in fb? i've tried put code in onresume of fragment no luck!
w.getdecorview().setsystemuivisibility( view.system_ui_flag_layout_stable |view.system_ui_flag_visible); and, i've tried:
w.clearflags(windowmanager.layoutparams.flag_fullscreen); w.addflags(windowmanager.layoutparams.flag_force_not_fullscreen); any other way fix this? thank you!
Comments
Post a Comment