Splashscreen not displaying fullscreen in .net maui when Android 12 and higher versions

Splash screen not displaying full screen in .NET Maui when Android 12 and higher versions. The splash screen contains a logo as usual and the few lines of text at the bottom. The issue is images and text look very small and are not displaying in full screen compared to other versions.It displays the full screen with the below version, like, for example, Android 9. I have tried splash screen as a content page, but it gets a delay in performance compared to previous versions. so please help to resolve the issue.sample screenshot attached

0

From document Add a splash screen to a .NET MAUI app project,we know that

On Android 12+ (API 31+), the splash screen shows an icon that’s
centred on screen.

On Android 12+ (API 31+),it’s impossible to make image to full screen in splash screen. It is only possible to customize it: icon, window background, exit animation. Please check document: Splash screens on developer.android.com.

However, there is a workaround to make the splash screen to transparent, and then you can create a splashScreen with ContentPage, add images in the ContentPage.

Step 1. Create styles.xml at Platforms/Android/Resources/values folder, and add the following code to customize style. And make sure the build action of styles.xml is AndroidResource.

<?xml version="1.0" encoding="utf-8" ?>
<resources>
<style name="MyTheme.Splash" parent ="MainTheme">
<item name="android:windowIsTranslucent">true</item>                  
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="android:windowSplashScreenAnimatedIcon">@android:color/transparent</item>
<item name="android:windowSplashScreenAnimationDuration">0</item>
</style>
</resources>

Step2. Open the MainActivity.cs, change the theme to Theme = "@style/MyTheme.Splash".

[Activity(Theme = "@style/MyTheme.Splash", ...)]
public class MainActivity : MauiAppCompatActivity
{
}

Step3. please create a Contentpage called SplashScreen and add your image to it. And open the Mainpage after several seconds by Task.Delay() and Application.Current.MainPage = new MainPage ();.
Just like the following code.

protected override async void OnAppearing()
{
    base.OnAppearing();
 
   await Task.Delay(1000).ContinueWith(t => {
       MainThread.InvokeOnMainThreadAsync(() => {
           Application.Current.MainPage = new MainPage ();
       });
    }); 
}

Step4. open the App.xaml.cs, change the MainPage to the SplashScreen.

  public partial class App : Application
  {
      public App()
      {
          InitializeComponent();
 
          MainPage = new SplashScreen();
      }
  }

4

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật