dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.24k stars 1.76k forks source link

Toolbar overlaps with Android notification bar #6392

Closed hbraasch closed 2 years ago

hbraasch commented 2 years ago

Description

When navigating from a main page to another page using the [Application.Current.MainPage.Navigation.PushModalAsync(nextPage)] instruction, the Toolbar merges with the topmost notification bar. When it should be like this (generated inside Xamarin Forms):

image

It displays like this (generated inside Maui): image

As mentioned before, using the exact same code in Xamarin Forms, it displays correctly.

This was always a problem (earlier releases of MAUI) but I was hoping it will disappear during its development. It did not happen. That's why I am raising this issue.

Steps to Reproduce

  1. Open the reproduction project in Visual Studio and run on Android. Here is the GitHub url: https://github.com/hbraasch/ToolbarAlignmentTester.git 2.Once running, click on the [Next] toolbar item. This will navigate to another page called [NextPage], and there the Toolbar will display incorrectly.

Version with bug

Release Candidate 1 (current)

Last version that worked well

Unknown/Other

Affected platforms

I was not able test on other platforms

Affected platform versions

Tested on Android API 29/30 only

Did you find any workaround?

None

Relevant log output

Forwarding debugger port 8874
Detecting existing process
> am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.companyname.toolbaralignmenttester/crc6488558a1daf42c85c.MainActivity"
> Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.companyname.toolbaralignmenttester/crc6488558a1daf42c85c.MainActivity }
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/ToolbarAlignmentTester.dll
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Mono.Android.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Runtime.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Java.Interop.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Collections.dll [External]
Resolved pending breakpoint for 'Android.Runtime.JNIEnv.RegisterJniNatives(System.IntPtr, System.Int32, System.IntPtr, System.IntPtr, System.Int32)' to /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNIEnv.cs:124 [0x00000].
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Threading.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Runtime.InteropServices.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Threading.Thread.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Diagnostics.StackTrace.dll [External]
Loaded assembly: data-0x7a8ea04d40 [External]
Loaded assembly: data-0x7a8ea1a040 [External]
Loaded assembly: data-0x7a89e82dc0 [External]
Loaded assembly: data-0x7a89eef8c0 [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/netstandard.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Linq.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Collections.Concurrent.dll [External]
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointSendToIde(System.String)' to D:\a\_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:419 [0x00000].
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Text.Json.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Text.Encodings.Web.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.ComponentModel.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Microsoft.Maui.Controls.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.ObjectModel.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Microsoft.Maui.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Microsoft.Maui.Graphics.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Microsoft.Maui.Essentials.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Microsoft.Extensions.Logging.Abstractions.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Runtime.Loader.dll [External]
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to D:\a\_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:414 [0x00000].
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Memory.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Reflection.Emit.Lightweight.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Reflection.Emit.ILGeneration.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Reflection.Primitives.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Runtime.CompilerServices.Unsafe.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.Core.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Microsoft.Extensions.DependencyInjection.Abstractions.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Microsoft.Maui.Controls.Xaml.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Microsoft.Extensions.Configuration.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Microsoft.Extensions.Configuration.Abstractions.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Microsoft.Extensions.Logging.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.AppCompat.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.Google.Android.Material.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.ComponentModel.TypeConverter.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Private.Uri.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.DrawerLayout.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.CustomView.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.Navigation.Runtime.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Microsoft.Extensions.DependencyInjection.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Diagnostics.Tracing.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Xml.ReaderWriter.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Private.Xml.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Text.Encoding.Extensions.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Text.RegularExpressions.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Numerics.Vectors.dll [External]
[Zygote] isWhitelistProcess - Process is Whitelisted
[Zygote] accessInfo : 1
[alignmentteste] Late-enabling -Xcheck:jni
[alignmentteste] Unknown bits set in runtime_flags: 0x8000
[debug-app-helper] Checking if libmonodroid was unpacked to /data/app/com.companyname.toolbaralignmenttester-comIQ8M9ywcQafYLERJU1A==/lib/arm64/libmonodroid.so
[debug-app-helper] Native libs extracted to /data/app/com.companyname.toolbaralignmenttester-comIQ8M9ywcQafYLERJU1A==/lib/arm64, assuming application/android:extractNativeLibs == true
[debug-app-helper] Setting up for DSO lookup in app data directories
[debug-app-helper] Added filesystem DSO lookup location: /data/app/com.companyname.toolbaralignmenttester-comIQ8M9ywcQafYLERJU1A==/lib/arm64
[debug-app-helper] Using runtime path: /data/app/com.companyname.toolbaralignmenttester-comIQ8M9ywcQafYLERJU1A==/lib/arm64
[debug-app-helper] checking directory: `/data/user/0/com.companyname.toolbaralignmenttester/files/.__override__/lib`
[debug-app-helper] directory does not exist: `/data/user/0/com.companyname.toolbaralignmenttester/files/.__override__/lib`
[debug-app-helper] Checking whether Mono runtime exists at: /data/user/0/com.companyname.toolbaralignmenttester/files/.__override__/libmonosgen-2.0.so
[debug-app-helper] Checking whether Mono runtime exists at: /data/app/com.companyname.toolbaralignmenttester-comIQ8M9ywcQafYLERJU1A==/lib/arm64/libmonosgen-2.0.so
[debug-app-helper] Mono runtime found at: /data/app/com.companyname.toolbaralignmenttester-comIQ8M9ywcQafYLERJU1A==/lib/arm64/libmonosgen-2.0.so
[alignmentteste] Attempt to remove non-JNI local reference, dumping thread
[DOTNET] JNI_OnLoad: JNI_OnLoad in pal_jni.c
[monodroid] Creating public update directory: `/data/user/0/com.companyname.toolbaralignmenttester/files/.__override__`
[alignmentteste] Attempt to remove non-JNI local reference, dumping thread
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8874,server=y,embedding=1
[TcpOptimizer] TcpOptimizer-ON
[monodroid-assembly] open_from_bundles: failed to load assembly ToolbarAlignmentTester.dll
[monodroid-gc] GREF GC Threshold: 46080
[monodroid-assembly] open_from_bundles: failed to load assembly Mono.Android.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Java.Interop.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Collections.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Threading.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.InteropServices.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Threading.Thread.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Diagnostics.StackTrace.dll
[alignmentteste] Attempt to remove non-JNI local reference, dumping thread
[monodroid-assembly] open_from_bundles: failed to load assembly netstandard.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Linq.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Collections.Concurrent.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Text.Json.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Text.Encodings.Web.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.ComponentModel.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Controls.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.ObjectModel.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Graphics.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Essentials.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Logging.Abstractions.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Loader.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Memory.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Reflection.Emit.Lightweight.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Reflection.Emit.ILGeneration.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Reflection.Primitives.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.CompilerServices.Unsafe.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Core.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.DependencyInjection.Abstractions.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Controls.Xaml.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Configuration.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Configuration.Abstractions.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.Logging.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.AppCompat.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.Google.Android.Material.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.ComponentModel.TypeConverter.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Private.Uri.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.DrawerLayout.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.CustomView.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Navigation.Runtime.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Extensions.DependencyInjection.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Diagnostics.Tracing.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Xml.ReaderWriter.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Private.Xml.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Text.Encoding.Extensions.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Text.RegularExpressions.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en-AU/System.Private.CoreLib.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en-AU/System.Private.CoreLib.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en/System.Private.CoreLib.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en/System.Private.CoreLib.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Numerics.Vectors.dll
[alignmentteste] Explicit concurrent copying GC freed 34(16KB) AllocSpace objects, 0(0B) LOS objects, 65% free, 1066KB/3114KB, paused 49us total 5.300ms
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.RecyclerView.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.SwipeRefreshLayout.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.CardView.dll
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.RecyclerView.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.SwipeRefreshLayout.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.CardView.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Fragment.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Activity.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.Common.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.ViewModel.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.SavedState.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Loader.dll
[libEGL] loaded /vendor/lib64/egl/libGLES_mali.so
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.Fragment.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.Activity.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.Lifecycle.Common.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.Lifecycle.ViewModel.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.SavedState.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.Loader.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.Maui.Controls.Compatibility.dll
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Microsoft.Maui.Controls.Compatibility.dll [External]
Thread started:  #2
Thread started:  #3
Thread started:  #4
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Serialization.Json.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Private.DataContractSerialization.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Serialization.Xml.dll
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Runtime.Serialization.Json.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Private.DataContractSerialization.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Runtime.Serialization.Xml.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Serialization.Primitives.dll
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Runtime.Serialization.Primitives.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly en-AU/System.Private.DataContractSerialization.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en-AU/System.Private.DataContractSerialization.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en/System.Private.DataContractSerialization.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly en/System.Private.DataContractSerialization.resources.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.CoordinatorLayout.dll
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.CoordinatorLayout.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Navigation.Fragment.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Navigation.Common.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.Kotlin.StdLib.dll
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.Navigation.Fragment.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.Navigation.Common.dll [External]
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.Kotlin.StdLib.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.LiveData.Core.dll
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.Lifecycle.LiveData.Core.dll [External]
[PhoneWindow] forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4274 com.android.internal.policy.DecorView.updateColorViews:1547 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3252 android.view.Window.setFlags:1153 com.android.internal.policy.PhoneWindow.generateLayout:2474 
[MultiWindowDecorSupport] [INFO] isPopOver = false
[MultiWindowDecorSupport] updateCaptionType >> DecorView@d409e39[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
[MultiWindowDecorSupport] setCaptionType = 0, DecorView = DecorView@d409e39[]
[alignmentteste] Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
[alignmentteste] Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.AndroidX.Navigation.UI.dll
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/Xamarin.AndroidX.Navigation.UI.dll [External]
Thread started: <Thread Pool> #5
Thread started: .NET ThreadPool Gate #6
[ViewRootImpl@21b867[MainActivity]] setView = com.android.internal.policy.DecorView@d409e39 TM=true MM=false
Thread started: <Thread Pool> #7
Thread started: .NET Timers #8
[ViewRootImpl@21b867[MainActivity]] Relayout returned: old=(0,0,1440,2960) new=(0,0,1440,2960) req=(1440,2960)0 dur=4 res=0x7 s={true 526224887808} ch=true
[mali_winsys] new_window_surface() [1440x2960] return: 0x3000
[Gralloc3] mapper 3.x is not supported
[gralloc] Arm Module v1.0
[ViewRootImpl@21b867[MainActivity]] MSG_WINDOW_FOCUS_CHANGED 1 1
[InputMethodManager] prepareNavigationBarInfo() DecorView@d409e39[MainActivity]
[InputMethodManager] getNavigationBarColor() -526344
[InputMethodManager] prepareNavigationBarInfo() DecorView@d409e39[MainActivity]
[InputMethodManager] getNavigationBarColor() -526344
[InputMethodManager] Starting input: tba=com.companyname.toolbaralignmenttester ic=null mNaviBarColor -526344 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
[InputMethodManager] startInputInner - Id : 0
[InputMethodManager] startInputInner - mService.startInputOrWindowGainedFocus
[ViewRootImpl@21b867[MainActivity]] MSG_RESIZED: frame=(0,0,1440,2960) ci=(0,84,0,168) vi=(0,84,0,168) or=1
[InputMethodManager] prepareNavigationBarInfo() DecorView@d409e39[MainActivity]
[InputMethodManager] getNavigationBarColor() -526344
[InputMethodManager] Starting input: tba=com.companyname.toolbaralignmenttester ic=null mNaviBarColor -526344 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
[InputMethodManager] startInputInner - Id : 0
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.Intrinsics.dll
Loaded assembly: /data/data/com.companyname.toolbaralignmenttester/files/.__override__/System.Runtime.Intrinsics.dll [External]
[alignmentteste] Explicit concurrent copying GC freed 1905(116KB) AllocSpace objects, 0(0B) LOS objects, 69% free, 2650KB/8794KB, paused 47us total 14.643ms
Thread started: <Thread Pool> #9
Thread started: <Thread Pool> #10
Thread started: <Thread Pool> #11
Thread started: <Thread Pool> #12
Thread started: <Thread Pool> #13
Thread started: <Thread Pool> #14
[ViewRootImpl@21b867[MainActivity]] ViewPostIme pointer 0
[ViewRootImpl@21b867[MainActivity]] ViewPostIme pointer 1
Thread finished: <Thread Pool> #9
Thread finished: <Thread Pool> #11
Thread finished: <Thread Pool> #10
Thread finished: <Thread Pool> #14
Thread finished: <Thread Pool> #5
Thread finished: <Thread Pool> #7
The thread 0x9 has exited with code 0 (0x0).
The thread 0xb has exited with code 0 (0x0).
The thread 0xa has exited with code 0 (0x0).
The thread 0xe has exited with code 0 (0x0).
The thread 0x5 has exited with code 0 (0x0).
The thread 0x7 has exited with code 0 (0x0).
v-longmin commented 2 years ago

Verified repro on Android 12.0 - API 31 with VS 17.3.0 Preview 1.0 [32414.199.main]. Repro project: ToolbarAlignmentTester-master.zip

hbraasch commented 2 years ago

Thanks for the verification. Great!

hbraasch commented 2 years ago

Now verified myself problem does NOT exist on iOS, only Android

samhouts commented 2 years ago

No longer reproducible on main (6.0.300-rc.4.5681) image