Just thought I would ping this and see if there was anything on this, if I am full of s***, or just plain dumb. The basic issue is that I can't actually get the navbar to ever go away. I can make it low profile. I can restore it, but making it go away seems to be a problem Any ideas on this? Wally From: [email protected] To: [email protected] Date: Mon, 5 Mar 2012 16:09:38 -0500 Subject: [mono-android] Introduction to ICS from xamarin site
I've been writing some sample code on ICS. I am trying to hide, minimize, and display the navigation bar. I am using samples listed at: http://docs.xamarin.com/android/tutorials/Introduction_to_Ice_Cream_Sandwich as my guide. Thanks for all the hard work Mike! I'm running into a problem in that I can't make the navbar actually disappear. I've tried this with my code as well as Mike's and am unable to make the navbar disappear. I am wondering if the StatusBarVisibility enum is the problem, since it only has 2 values and we are working with 3 possible states. I've copied out Mike's code as some sample code, but mine is basically doing the same type of thing. var tv = FindViewById<TextView> (Resource.Id.systemUiFlagTextView); var lowProfileButton = FindViewById<Button> (Resource.Id.lowProfileButton); var hideNavButton = FindViewById<Button> (Resource.Id.hideNavigation); var visibleButton = FindViewById<Button> (Resource.Id.visibleButton); lowProfileButton.Click += delegate { tv.SystemUiVisibility = (StatusBarVisibility)View.SystemUiFlagLowProfile; }; hideNavButton.Click += delegate { tv.SystemUiVisibility = (StatusBarVisibility)View.SystemUiFlagHideNavigation; }; visibleButton.Click += delegate { tv.SystemUiVisibility = (StatusBarVisibility)View.SystemUiFlagVisible; }; _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
