Hello,
I test your code, I can reproduce this issue in android platform.
For fix this issue, you can add following WebView handler in your layout constructor 's background code to set the layerType to software.
Microsoft.Maui.Handlers.WebViewHandler.Mapper.AppendToMapping("MyCustomization", (handler, view) =>
{
#if ANDROID
handler.PlatformView.SetLayerType(Android.Views.LayerType.Hardware
#endif
});
And open your AndroidManifest.xml
file In your Android manifest file, add the following attribute to the <application>
tag to enable hardware acceleration for your entire application:
<application android:hardwareAccelerated="true" ...>
Best Regards, Leon Lu
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.