Can I have only one Xamarin Content Page with no full screen in Android?

43
May 02, 2021, at 11:10 AM

I have seted android:windowFullscreen = false for achiving to fix an issue that was kicking out from screen some element views when soft keyboard is open. I was able to solve the problem, but now my whole app has no full screen mode. Is there any chance of having only a specific page without full screen mode in Xamarin Android?

Answer 1

Xamarin.Android you can add or remove full screen flag in Activity.

protected override void OnCreate(Bundle bundle)
{
   .....
   //Add full screen flag
   Window.SetFlags(Android.Views.WindowManagerFlags.Fullscreen, Android.Views.WindowManagerFlags.Fullscreen);
   //Remove full screen flag
   Window.ClearFlags(Android.Views.WindowManagerFlags.Fullscreen);
}

Looks you are using a common theme that is applicable to all activities. So, all activities are following same. So, this can be reset in code behind or you can use two different theme one for full screen and other for without full screen.

READ ALSO
Compser require maatwebsite/excel [closed]

Compser require maatwebsite/excel [closed]

Want to improve this question? Add details and clarify the problem by editing this post

46
Laravel 8 Quiz System [closed]

Laravel 8 Quiz System [closed]

Want to improve this question? Update the question so it focuses on one problem only by editing this post

53
FormEmailer dropping CSS Inline to Gmail

FormEmailer dropping CSS Inline to Gmail

I have set up a FormEmailer script to run on a form/sheet I'm working onThe current aim is to have an email sent to a specific person after form submission with the questions and answers in a table (two columns, six rows)

30
How to shift an array of posenet points?

How to shift an array of posenet points?

I'm a beginner at using p5js but I'm currently currently attempting to create a brush sketch like this ellipse brush

51