1

So I was able to find that you can use depricated code to make the status bar on Android fully transparent:

    var s = SystemUiFlags.LayoutFullscreen | SystemUiFlags.LayoutStable;
    FindViewById(Android.Resource.Id.Content).SystemUiVisibility = (StatusBarVisibility)s;
    Window.SetStatusBarColor(Android.Graphics.Color.Transparent);
    WindowInsetsControllerCompat windowInsetsController = new WindowInsetsControllerCompat(Window, Window.DecorView);
    windowInsetsController.AppearanceLightStatusBars = true;

Since this code is deprecated, how do I achieve the same effect of the top status bar being fully transparent, as matching the background color of whatever picture or color is on the screen at the time. I am using .NET MAUI in VS 2022.

ToolmakerSteve
  • 11,473
  • 10
  • 75
  • 168
Virang Patel
  • 21
  • 1
  • 3
  • See https://stackoverflow.com/q/68451704/199364. I won't mark this question as duplicate, because it would be great if you (or anyone) take one of those java answers, and rewrite it in c#. If you get it working, please add it as "Your Answer" below. – ToolmakerSteve May 26 '22 at 19:41

0 Answers0