标签: splash-screen

在几秒钟内显示飞溅图像是空白的

在我的应用程序中,我在连接数据库和其他初始化期间有一个启动图像.它可以很好地显示启动图像,但它是一段时间的空白.所以,

  1. 加载启动图像并显示几分之一秒.
  2. 飞溅图像空白2-3秒.
  3. 飞溅图像会再次显示几秒钟.
  4. 飞溅已关闭.

是否有一个聪明的事情是尽可能快地显示图像并删除空白图像?

DPR文件中的代码:

Application.Initialize;

SplashForm := TSplashForm.Create(Application);
SplashForm.Show;
// Tried Splash.Update here but no difference.

SplashForm.SetPos(15);
// Init code
SplashForm.SetPos(30);

// More Init code
SplashForm.SetPos(100);

SplashForm.Close;

Application.Run;
Run Code Online (Sandbox Code Playgroud)

和飞溅单位:

procedure TSplashForm.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  Action := caFree;
end;

procedure TSplashForm.FormCreate(Sender: TObject);
begin
  pbLoading.Properties.Text := 'Loading ' + TClientConfig.Instance.AppTitle + '...';
end;

procedure TSplashForm.SetPos(aPos: Integer);
begin
  pbLoading.Position := aPos;
  UpDate;
end;
Run Code Online (Sandbox Code Playgroud)

关心罗兰

delphi performance splash-screen

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

Android 启动画面旋转或漩涡

嗨,我很好奇是否有人知道spin/swirl在第一次运行应用程序时制作启动画面的方法。我想要旋转/漩涡的图像是一个 png。

android splash-screen

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

Java 中的启动画面

我需要弄清楚在这段代码中我需要调整它的位置以移动“Splash Screen!!!”行 到屏幕的中间,并可能使它更大。我不确定这是在代码中的哪个位置,这让我发疯。

import java.awt.*;
import javax.swing.*;

public class SplashScreen extends JWindow {

private int duration;

public SplashScreen(int d) {
    duration = d;
}

// A simple little method to show a title screen in the center
// of the screen for the amount of time given in the constructor
public void showSplash() {

    JPanel content = (JPanel)getContentPane();
    content.setBackground(Color.blue);

    // Set the window's bounds, centering the window
    int width = 700;
    int height = 450;
    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
    int …
Run Code Online (Sandbox Code Playgroud)

java swing text splash-screen

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

如何让普利茅斯精灵旋转?

我正在为 Kubuntu 定制 Plymouth 喷溅。我试图在系统加载时使图像旋转。我已经使用重新启动和 X11 插件对其进行了测试,但均未成功。这是 .script 文件:

spiral_image = Image("Splash.png");
spiral_sprite = Sprite(spiral_image);

spiral_sprite.SetX(window.GetWidth() /2 - spiral_image.GetWidth() /2);
spiral_sprite.SetY(window.GetHeight() /2 - spiral_image.GetHeight() /2);

fun refresh_callback ()
{
time++;
theta = time / 100;
spiral_sprite.Rotate(theta);
}
Plymouth.SetRefreshFunction (refresh_callback);
Run Code Online (Sandbox Code Playgroud)

linux splash-screen

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

我的应用程序闪屏保持白色

我试图为启动画面制作动画,但尝试失败,所以我从 AppDelegate 中删除了代码,但是当我运行我的项目时,启动画面只是白色!

在 LaunchScreen.xib 文件中,我有一个启动图像,但它没有显示出来。我尝试创建一个新的 LaunchImage.xib 文件,但还是同样的问题。

我用来应用动画的 AppDelegate 的这部分:

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    // Override point for customization after application launch.
    return true
}
Run Code Online (Sandbox Code Playgroud)

我不知道它是否是为了使用 AppDelegate 但它不起作用。

splash-screen xib ios launch-screen

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

Yocto 在不重建系统的情况下更改 psplash 映像

我正在尝试在当前构建的系统中更改 yocto 启动画面(由 psplash 生成),没有 yocto 重建过程......是否有可能更改此图像?我想我必须挂载包含启动映像的启动分区并替换它...

非常感谢,

splash-screen embedded-linux yocto

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

Docker - 尝试拉起启动画面时“无法在此平台上使用映像操作系统“linux”。从scrapinghub/飞溅

我已经安装了 docker,并且在尝试拉 scrapinghub/splash 时 - 它说“图像操作系统“linux”不能在这个平台上使用”。我正在使用 win 10。其他命令和拉取请求工作正常。

python splash-screen docker

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

如何更改初始屏幕的状态栏颜色?

我正在使用 React Native 来构建我的 android 应用程序,我已经按照本教程来设置我的启动画面。这里是结果。我的主要问题是状态栏颜色变为黑色,我无法通过<item name="colorPrimaryDark">@color/colorPrimaryDark</item>在我的styles.xml文件和<color name="blue">#009CD7</color>,<color name="colorPrimaryDark">#009CD7</color>在我的colors.xml文件中解决这个问题。

额外问题:如何在不硬编码边距的情况下使图像居中,以便无论应用程序运行在什么设备上,它都保持在中心?

android splash-screen react-native

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

为什么 TApplication.MessageBox 会自动关闭?

我有一个需要几秒钟才能加载的应用程序(大量初始化)。GUI 在启动期间冻结。所以我想创建一个在应用程序加载时淡入淡出的启动画面。我使用TBackgroundWorker组件在后台线程中执行动画。

但是,当我使用这个组件时会发生一些奇怪的事情:当它发出“工作完成”的信号时(请参阅 BackgroundWorkerWorkComplete),同时我打开的消息对话框会自动关闭。

procedure TMainForm.ButtonStartSplashClick(Sender: TObject);
VAR
  frmSplash: TfrmSplash;
begin
 frmSplash:= TfrmSplash.Create(NIL);
 frmSplash.StartAnimation;

 //MessageBox(Handle, 'Hi', nil, MB_OK);   // This remains on screen
 Application.MessageBox(PChar('Hi'), PChar('Box'), MB_ICONINFORMATION); // This is automatically closed when the background thread is done
end;
Run Code Online (Sandbox Code Playgroud)

这是启动画面:

procedure TfrmSplash.StartAnimation;
begin
 Show;
 BackgroundWorker.Execute;
end;


procedure TfrmSplash.FormClose(Sender: TObject; var Action: TCloseAction);
begin
 Action:= caFree;
end;


procedure TfrmSplash.BackgroundWorkerWork(Worker: TBackgroundWorker);
VAR i: Integer;
begin
  for i:= 1 to 255 DO
   begin
    AlphaBlendValue:= i; // do not access GUI directly from …
Run Code Online (Sandbox Code Playgroud)

delphi multithreading splash-screen backgroundworker tform

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

如何替换电容器中的图标和飞溅

我已经成功在设备上打包了项目,但是我想更换图标和飞溅。有什么办法可以更换吗?

使用Vue开发,打包到android。

icons android splash-screen vue.js capacitor

2
推荐指数
3
解决办法
3757
查看次数