android - Check if Samsung S8 is in full screen mode -
is there way check if device in full screen mode in new samsung s8? tried solutions added post returns true. detect soft navigation bar availability in android device progmatically?
i can correct visibility listening onsystemuivisibilitychangelistener shown below:
private class myonsystemuivisibilitychangelistener implements view.onsystemuivisibilitychangelistener { @override public void onsystemuivisibilitychange(int visibility) { if (visibility == view.system_ui_flag_hide_navigation) { // full screen mode } else { // not full screen mode } } } the above method works when user triggers full screen pressing on soft navigation button need check if device in full screen mode when entered app.
just call on view view.getsystemuivisibility() , compare same int
Comments
Post a Comment