Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to put content under statusbar with Shell Navigation in Android #13788

Open
kalpasrl opened this issue Mar 9, 2023 · 4 comments
Open
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@kalpasrl
Copy link

kalpasrl commented Mar 9, 2023

Description

Hello,
I need to put the content under the transparent StatusBar, but it doesn't work with the Shell Navigation.

This is the android code:

[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
public class MainActivity : MauiAppCompatActivity
{
    protected override void OnCreate(Bundle savedInstanceState)
    {
        base.OnCreate(savedInstanceState);
        if (Build.VERSION.SdkInt >= BuildVersionCodes.R)
        {
            Window.SetDecorFitsSystemWindows(false);
        }
        else
        {
            Window.DecorView.SystemUiVisibility = (StatusBarVisibility)(SystemUiFlags.LayoutFullscreen | SystemUiFlags.LayoutStable);
        }
        Window.SetStatusBarColor(Android.Graphics.Color.Transparent);
    }
}
Shell Without Shell
333040255_164792396363279_7875082613725246471_n 328759526_551685846772542_5148580973227957400_n

Without Shell it works fine.

Steps to Reproduce

  1. Create a new .NET MAUI App
  2. Modifiy the MainActivity with sample code in description of issue
  3. Add a background image to MainPage

Expected outcome: a bug was added

Link to public reproduction project repository

N/A

Version with bug

7.0 (current)

Last version that worked well

7.0 (current)

Affected platforms

Android

Affected platform versions

Android 10 and later

Did you find any workaround?

No response

Relevant log output

No response

@kalpasrl kalpasrl added the t/bug Something isn't working label Mar 9, 2023
@jsuarezruiz jsuarezruiz added platform/android 🤖 area-controls-shell Shell Navigation, Routes, Tabs, Flyout labels Mar 9, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Mar 9, 2023
@ghost
Copy link

ghost commented Mar 9, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@jinxinjuan jinxinjuan added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Aug 15, 2023
@jinxinjuan
Copy link

Verified this issue with Visual Studio Enterprise 17.8.0 Preview 1.0. Can repro on android platform with MAUI Template project.

@evgenyvalavin
Copy link

+1

1 similar comment
@arkadiuszokon
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants