Hi guys,
I am now very close to getting my project released and tried testing on a LG G3 and get the nav bar showing so used the code : -
fl.SystemUiVisibility = (StatusBarVisibility)Android.Views.SystemUiFlags.HideNavigation;
This hides it but as soon as anything changes on screen I get a lot of flashing and corrupted graphics any suggestions great fully received. Below is the activity code…
base.OnCreate (bundle);
// Create our OpenGL view, and display it
var g = new BounceITGame ();
FrameLayout fl = new FrameLayout(this);
fl.SetFitsSystemWindows(false);
//SystemUiFlagHideNavigation
LinearLayout ll = new LinearLayout (this);
ll.Orientation = Orientation.Horizontal;
ll.SetGravity(GravityFlags.Top);
//fl.AddView(g.Window);
fl.AddView ((View)g.Services.GetService (typeof(View)));
adView = AdWrapper.ConstructStandardBanner(this, AdSize.SmartBanner, “ca-app- pub-1223188343191718/7605004788”);
var listener = new adlistener();
adView.AdListener = listener;
adView.CustomBuild();
//Android.Gms.Ads.AdRequest
var requestBuilder = new AdRequest.Builder ();
adView.SystemUiVisibility = (StatusBarVisibility)Android.Views.SystemUiFlags.HideNavigation;
ll.SystemUiVisibility = (StatusBarVisibility)Android.Views.SystemUiFlags.HideNavigation;
fl.SystemUiVisibility = (StatusBarVisibility)Android.Views.SystemUiFlags.HideNavigation;
ll.SetFitsSystemWindows(false);
adView.SetFitsSystemWindows(false);
ll.AddView(adView);
fl.AddView(ll);
fl.SetFitsSystemWindows(false);
adView.LoadAd (requestBuilder.Build());
g.ScreenManager.CurrentAdView = adView;
////SetContentView ((View)g.Services.GetService (typeof (View)));
//SetContentView (g.Window);
SetContentView (fl);
g.Run ();