标签: splash-screen

phonegap/cordova闪屏宽高比问题

我创建了我的phonegap应用程序,并且每件事都有效,但是启动画面让我发疯.它将显示但不是完美的宽高比(在nexus 6上测试).它将被挤压在宽度上.

我目前的启动画面config.xml

<gap:splash src="www/res/screen/android/land_xxhdpi.png" />
<gap:splash src="www/res/screen/android/ldpi.png" gap:platform="android" gap:qualifier="port-ldpi"/>
<gap:splash src="www/res/screen/android/mdpi.png" gap:platform="android" gap:qualifier="port-mdpi"/>
<gap:splash src="www/res/screen/android/hdpi.png" gap:platform="android" gap:qualifier="port-hdpi"/>
<gap:splash src="www/res/screen/android/xhdpi.png" gap:platform="android" gap:qualifier="port-xhdpi"/>
<gap:splash src="www/res/screen/android/xxhdpi.png" gap:platform="android" gap:qualifier="port-xxhdpi"/>
<gap:splash src="www/res/screen/android/land_ldpi.png" gap:platform="android" gap:qualifier="land-ldpi"/>
<gap:splash src="www/res/screen/android/land_mdpi.png" gap:platform="android" gap:qualifier="land-mdpi"/>
<gap:splash src="www/res/screen/android/land_hdpi.png" gap:platform="android" gap:qualifier="land-hdpi"/>
<gap:splash src="www/res/screen/android/land_xhdpi.png" gap:platform="android" gap:qualifier="land-xhdpi"/>
<gap:splash src="www/res/screen/android/land_xxhdpi.png" gap:platform="android" gap:qualifier="land-xxhdpi"/>

<preference name="SplashScreenBackgroundColor" value="#e8413d" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3500" />
<preference name="SplashMaintainAspectRatio" value="false" />
Run Code Online (Sandbox Code Playgroud)

知道我该怎么办?9补丁不适合我,我不知道为什么,我不明白这个工具.

希望有人可以提供帮助

android splash-screen cordova

9
推荐指数
1
解决办法
3172
查看次数

Flutter应用程序打开,但停留在初始屏幕上

当我构建iOS应用程序时,它在Macbook的模拟器中完美打开。当我在iTunes商店上发布该应用程序时,该应用程序不再起作用。初始屏幕已显示,但停留在屏幕上。

splash-screen ios flutter

9
推荐指数
1
解决办法
1486
查看次数

Java 6启动画面

我从来没有能够使Java 6启动画面工作.

我已经尝试了所有我能想到的东西.我的manifest.mf包含:

Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
SplashScreen-Image: geotagsplashscreen.gif
Run Code Online (Sandbox Code Playgroud)

我将文件"geotragsplashscreen.gif"放在我的源代码树的根目录中,并验证它是否成为生成的.jar文件的根目录.我也在不同的地方尝试过,再次确认它在jar中的位置,并将路径放在SplashScreen-Image中.

它永远不会出现.

尝试在运行时获取启动画面失败:

    final SplashScreen splash = SplashScreen.getSplashScreen();
    if (splash == null) {
        return;
    }
Run Code Online (Sandbox Code Playgroud)

对我来说,飞溅总是空的.

关于我在这里缺少什么的想法?

java splash-screen

8
推荐指数
1
解决办法
6565
查看次数

启动画面不会将焦点返回到主窗体

我是大家.使用启动画面时,我目前的焦点有问题.我正在使用VS2008,带有.NET framework 2.0.此外,我已将我的项目与VisualBasic.dll链接,因为我使用ApplicationServices来管理我的单实例应用程序和启动画面.

这是一个简化了我尝试调试的代码片段.

namespace MyProject
{
    public class Bootstrap
    {
        /// <summary>
        /// Main entry point of the application. It creates a default 
        /// Configuration bean and then creates and show the MDI
        /// Container.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            // Creates a new App that manages the Single Instance background work
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            App myApp = new App();
            myApp.Run(args);
        }
    }

    public class App : WindowsFormsApplicationBase
    {
        public App()
            : base()
        {
            // Make this …
Run Code Online (Sandbox Code Playgroud)

c# focus splash-screen

8
推荐指数
1
解决办法
5392
查看次数

在启动屏幕关闭后将主窗口置于前面

我遇到了自定义wpf启动画面实现的问题.问题是在加载完成并且应该显示MainWindow之后,它有时不会被带到前面,即Activate()调用失败.它可能发生1/10倍.应用程序在Windows7/64上运行.

这是实施(完整源样本)

public partial class App : Application
{
    private Splash _splash;
    private SplashVM _viewModel;

    protected override void OnStartup(StartupEventArgs e)
    {
        base.OnStartup(e);

        // starts splash in separate GUI thread
        StartSplash();

        // continues on loading main application in main gui thread
        LoadMainAppFakeSteps(1000, 3);

        // tells splash screen to start shutting down
        Stop();

        // Creates mainwindow for application
        // The problem is that the mainwindow sometimes fails to activate, 
        // even when user has not touched mouse or keyboard (i.e …
Run Code Online (Sandbox Code Playgroud)

wpf splash-screen

8
推荐指数
1
解决办法
3675
查看次数

令人困惑的Cordova图标和启动画面目录

科尔多瓦文档,关于使用图标和闪屏的Android,指出他们应该被放置在WWW/RES /图标WWW/RES /屏幕目录分别.但后来,在同一个页面,它说;

你需要将png文件从platforms/android/www/res/screen/android复制 到 platforms/android/res/drawable/*

所以; 如果应将图标和启动画面复制到drawable文件夹,在www/res/icons*www/res/screens上使用它们有什么用

这很令人困惑(@ _ @)特别是当文档添加更多歧义时;

 ..When working in the CLI...
Run Code Online (Sandbox Code Playgroud)

icons android splash-screen cordova

8
推荐指数
1
解决办法
4909
查看次数

如何在Phonegap 3.3中显示Splashscreen

如何正确显示防溅板?我正在使用CLi本地版本,我听说它是​​兼容的.我添加了插件:phonegap插件添加org.apache.cordova.splashscreen这是我的配置文件:

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.Snap.What" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
    <name>WhatSnap</name>
    <description>
        Hello World sample application that responds to the deviceready event.
    </description>
    <author email="support@phonegap.com" href="http://phonegap.com">
        PhoneGap Team
    </author>
    <feature name="http://api.phonegap.com/1.0/device" />
    <preference name="permissions" value="none" />
    <preference name="orientation" value="default" />
    <preference name="target-device" value="universal" />
    <preference name="fullscreen" value="true" />
    <preference name="webviewbounce" value="true" />
    <preference name="prerendered-icon" value="true" />
    <preference name="stay-in-webview" value="false" />
    <preference name="ios-statusbarstyle" value="black-opaque" />
    <preference name="detect-data-types" value="true" />
    <preference name="exit-on-suspend" value="false" />
    <preference name="show-splash-screen-spinner" value="true" />
    <preference name="auto-hide-splash-screen" value="true" />
    <preference …
Run Code Online (Sandbox Code Playgroud)

splash-screen phonegap-plugins cordova cordova-3

8
推荐指数
1
解决办法
8961
查看次数

自定义Splashscreen和图标在Ionic 2没有显示,Cordova图标显示

我不明白为什么我的图标和闪屏没有显示.它们在config.xml文件中被正确引用,但它是显示的cordova默认图像.请帮忙

编辑:我刚刚注意到生成的图标和启动画面没有复制到各自的平台.为什么会这样?

splash-screen cordova ionic2

8
推荐指数
2
解决办法
1万
查看次数

启动画面错误:android.content.res.Resources $ NotFoundException:可绘制

我正在尝试通过遵循本文实现对我的android应用程序的启动屏幕 。我已逐步遵循它,但是每当我尝试运行该应用程序时,它都会立即崩溃,并且在logcat中出现以下错误:

2019-01-05 10:46:33.682 2265-2265/com.example.khoi.parkingapp E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.khoi.parkingapp, PID: 2265
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.khoi.parkingapp/com.example.khoi.parkingapp.SplashActivity}: android.content.res.Resources$NotFoundException: Drawable com.example.khoi.parkingapp:drawable/splash_background with resource ID #0x7f07008d
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2955)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3030)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6938)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
     Caused by: android.content.res.Resources$NotFoundException: Drawable com.example.khoi.parkingapp:drawable/splash_background with resource ID #0x7f07008d
     Caused by: android.content.res.Resources$NotFoundException: File res/drawable/splash_background.xml from drawable resource ID #0x7f07008d
        at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:837)
        at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:659)
        at android.content.res.Resources.getDrawableForDensity(Resources.java:891)
        at android.content.res.Resources.getDrawable(Resources.java:833)
        at android.content.Context.getDrawable(Context.java:605)
        at …
Run Code Online (Sandbox Code Playgroud)

android splash-screen drawable kotlin

8
推荐指数
2
解决办法
2765
查看次数

flutter web 中的启动画面

我们可以更改各自文件夹中的 Android 和 ios 启动画面。flutter web 是否有任何启动画面?我在加载网页之前看到一个白屏。我们怎样才能改变它?那是启动画面还是加载等待时间?

splash-screen flutter flutter-web

8
推荐指数
1
解决办法
2996
查看次数