Title pretty much describes the issue here, any help is appeciated. I have no other problems with the action bar besides this issue.
Please see my activity class below (I assume something here is the problem):
using Android.App;
using Android.Content.PM;
using Android.OS;
using Android.Views;
namespace my_app
{
[Activity(Label = "my app"
, MainLauncher = true
, Icon = "@drawable/icon"
, Theme = "@style/Theme.Splash"
, AlwaysRetainTaskState = true
, LaunchMode = Android.Content.PM.LaunchMode.SingleInstance
, ScreenOrientation = ScreenOrientation.UserLandscape
, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize)]
public class Activity1 : Microsoft.Xna.Framework.AndroidGameActivity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
var g = new Game1();
SetContentView((View)g.Services.GetService(typeof(View)));
g.Run();
View vw = (View)g.Services.GetService(typeof(View));
vw.SystemUiVisibility = (StatusBarVisibility)SystemUiFlags.HideNavigation | (StatusBarVisibility)SystemUiFlags.ImmersiveSticky;
vw.SetOnSystemUiVisibilityChangeListener(new MyUiVisibilityChangeListener(vw));
}
private class MyUiVisibilityChangeListener : Java.Lang.Object, View.IOnSystemUiVisibilityChangeListener
{
View targetView;
public MyUiVisibilityChangeListener(View v)
{
targetView = v;
}
public void OnSystemUiVisibilityChange(StatusBarVisibility v)
{
if (targetView.SystemUiVisibility != ((StatusBarVisibility)SystemUiFlags.HideNavigation | (StatusBarVisibility)SystemUiFlags.Immersive))
{
targetView.SystemUiVisibility = (StatusBarVisibility)SystemUiFlags.HideNavigation | (StatusBarVisibility)SystemUiFlags.ImmersiveSticky;
}
}
}
}
}
Thanks