Splash screen and Slider problems after upgrade maui .net 7

Haviv Elbsz 1,826 Reputation points
2022-09-28T13:39:45.377+00:00

Hi all

After upgrade Maui from net6.0 to net7.0 by replacing net6.0 to net7.0 in the project file

The splash screen do not span to all screen as before upgrade.

how I can fixing this

Thank you

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,747 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,098 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Haviv Elbsz 1,826 Reputation points
    2022-09-30T13:29:30.417+00:00

    I found this workaround in the internet

    \obj\Release\net7.0-android\res\resources\drawable\maui_splash_image.xml

    <!--This file was auto-generated by .NET MAUI.-->
    <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:width="108dp" android:height="108dp"

    android:gravity="center"><bitmap android:gravity="Fill"   <== I changed Fill to center  
    

    android:src="@drawable/noami" android:mipMap="true" /></item></layer-list>