简体   繁体   English

三星 Galaxy S10 的启动画面变形

[英]Splash screen distorted on Samsung Galaxy S10

I have generated the splash screens for an app using the following site.我使用以下站点为应用程序生成了启动画面。 See image of screens below.请参阅下面的屏幕图像。 https://apetools.webprofusion.com/#/tools/imagegorilla https://apetools.webprofusion.com/#/tools/imagegorilla

However I am getting reports that a Samsung Galaxy S10 user is seeing a distorted splash screen.但是,我收到报告称三星 Galaxy S10 用户看到了扭曲的闪屏。 The resolution for this device appears to be 2,280 x 1,080 which is quite long compared to the ratios of the images I have generated.该设备的分辨率似乎为 2,280 x 1,080,与我生成的图像的比例相比,这相当长。

port-xhdpi is 720x1280端口 xhdpi 为 720x1280

port-xxhdpi is 960x1600端口 xxhdpi 为 960x1600

port-xxxhdpi is 1280x1920端口 xxxhdpi 为 1280x1920

Any idea how to resolve this?知道如何解决这个问题吗? Do I need to generate a different splash screen with a new image size?我是否需要生成具有新图像尺寸的不同启动画面?

在此处输入图像描述

I run across the same issue in my Ionic with Capacitor app.我在 Ionic with Capacitor 应用程序中遇到了同样的问题。

I was able to resolve the problem, adding this line in the capacitor.config.json file:我能够解决这个问题,在电容器.config.json 文件中添加这一行:

  "plugins": {
    "SplashScreen": {
      "androidScaleType": "CENTER_CROP",
    }
  }

as stated here: https://forum.ionicframework.com/t/splash-screen-is-stretched-in-some-devices/185430/8如此处所述: https ://forum.ionicframework.com/t/splash-screen-is-stretched-in-some-devices/185430/8

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM