fullscreen mode in android

Yuan Jeffers 1 Reputation point
2022-08-29T03:00:40.537+00:00

Hi,

Does anybody had run the maui application in android with fullscreen succesful?
I had tried the following:

  1. change the theme in AndroidManifest.xml
  2. override the oncreate, and use the window.addflag
  3. override the oncreate, and use the Window.DecorView.SystemUiVisibility

Unluckly, all of them failed.
Btw, I am using Shell as mainpage.
Thanks

Developer technologies .NET .NET MAUI
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2022-08-30T05:32:10.567+00:00

    Hello,

    For implementing full screen on Android, please refer to this official Android documentation Display content edge-to-edge in your app.

    You could implement it in MainActivity.cs of your MAUI project via C#.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.