Open jaison-t-john opened 4 months ago
You can try to hide the system bottom navigation bar when page poped-up.
_loginPopup = new LoginPopupPage();
_loginPopup.Loaded += (sender, args) =>
{
#if ANDROID
//Hide bottom navigation bar when page poped-up
if (sender is PopupPage { Handler.PlatformView: Android.Views.View { Parent: Android.Widget.FrameLayout decorView } })
{
var uiFlags = Android.Views.SystemUiFlags.LayoutStable | Android.Views.SystemUiFlags.HideNavigation;
decorView.SystemUiVisibility = (Android.Views.StatusBarVisibility) uiFlags;
}
#endif
};
I have add the demo code to the sample project by commit: https://github.com/microspaze/RGPopup.Maui/commit/701132a75a7c192c293203f58e192b5c9741ac0a
@microspaze Thanks for the quick turnaround. But I have a usecase of having multiple popups in my app, So it wont be a good idea to hide the system nav bar multiple times. Can we have something like using safe area for ios..
@jaison-t-john You can try the latest version 1.0.9. It includes some fix about this issue.
@microspaze I have customised the sample project available to make the popup page have verticaloptions as End. This makes the page render behind the device navigation menu bar in Android