splash-screen 相关问题

启动画面是矩形或全屏图像,在加载软件产品(OS,CAD,游戏等)时出现。它通常包含一个进度条,指示加载阶段。

我想摆脱 nuxt3 第一次启动的地方

在此输入图像描述 每当我的 nuxt3 项目重新启动时,这个徽标就会弹出,我不确定是否寻找一个选项来摆脱它。 版本是 Nuxt 3.6.2 与 Nitro 2.5.2 我搜索了

回答 1 投票 0

在嵌入式 Linux 内核 5.4.31 上未显示启动徽标

我目前正在使用 STM32MP octavo 板,特别是 OSD32MP1-BRK 型号,它运行的是嵌入式 Linux 内核版本 5.4.31。作为我项目的一部分,我正在尝试显示一个

回答 0 投票 0

执行功能时如何防止顶层窗口(启动画面)冻结?

我正在尝试在执行功能时显示启动画面,但它不起作用。进度条与顶层窗口一起冻结。我也试过 threading.Thread 但不能......

回答 1 投票 0

如何在原生启动画面上提供 GIF 图片

我正在使用本机启动画面包创建启动画面。 我试图在启动画面的背景中提供 GIF 图片。但它没有用。有没有办法在

回答 0 投票 0

我的闪屏导致 C# winforms 中的问题

在我的 C# 窗口窗体中,主窗体 (ParentForm) 的大小等于 1027、772 当我运行项目时,一切都很好。但是当我将启动画面表单添加到项目时。启动画面运行后...

回答 0 投票 0

如何使用 svg 图像在 Flutter 中创建启动画面

我想在 flutter 中创建启动画面。我有 svg 图像文件,不想转换为 JPG 或 PNG。有什么方法可以在 Flutter 中使用 svg 图像文件创建启动画面? 更新...

回答 2 投票 0

Android 12 启动画面 API - 增加启动画面持续时间

我正在学习 Android 12 引入的新 Android SplashScreen API。到目前为止,我已经让它在我的模拟器和 Google Pixel 4A 上运行,但我想增加它的持续时间。在我的启动画面中......

回答 4 投票 0

启动画面在 android studio 中不起作用

我首先尝试通过在 values 文件夹中创建一个单独的 xml 文件来更新启动画面,但是那没有用,所以我更改了 themes.xml 本身,但它仍然显示 android 徽标,而

回答 2 投票 0

Pyinstaller 加载启动画面

Pyinstaller 最近添加了一个启动画面选项(耶!)但是启动画面在 exe 运行的整个过程中保持打开状态。我需要它,因为我的文件打开速度很慢,我想警告用户不要...

回答 3 投票 0

SplashScreen 是中心裁剪

对于我的应用程序,我正在使用可绘制资源文件创建启动画面,该资源文件由具有彩色背景的图层列表和可绘制徽标的居中矢量组成。 splash_screen.xml 对于我的应用程序,我正在使用可绘制资源文件创建启动画面,该资源文件由具有彩色背景的图层列表和可绘制徽标的居中矢量组成。 splash_screen.xml <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@color/grey_700" /> <item android:drawable="@drawable/splash_foreground" android:gravity="center" /> </layer-list> style.xml ... <style name="Theme.SplashScreen" parent="Theme.MaterialComponents.DayNight.NoActionBar"> <item name="android:statusBarColor">@color/grey_900</item> <item name="android:windowBackground">@drawable/splash_screen</item> </style> ... AndroidManifest.xml ... <activity android:name=".MainActivity" android:exported="true" android:theme="@style/Theme.SplashScreen" android:screenOrientation="portrait" tools:ignore="LockedOrientationActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> ... splash_foreground.xml 问题 输出应显示splash_foreground在屏幕中心,而背景颜色在整个屏幕上被裁剪但显示启动画面居中裁剪。 与其使用你的两层矢量可绘制对象,不如制作一个 ImageView 显示你的前层并为你的活动布局定义 android:background 会容易得多。背景将采用一种颜色,徽标将显示在其顶部。然后您可以设置徽标的大小,而不必为裁剪图像而烦恼。 我使用新的 splash_screen API 解决了这个问题。感谢这篇文章 解决方案 在build.gradle中添加启动画面API implementation 'androidx.core:core-splashscreen:1.0.0' 在AndroidManifest.xml文件中的application标签前添加这一行 <uses-sdk tools:overrideLibrary="androidx.core.splashscreen" /> 在theme.xml和theme.xml (night)以Theme.SplashScreen为父级创建新样式 <style name="Theme.App.Starting" parent="Theme.SplashScreen"> <item name="android:statusBarColor">@color/grey_900</item> <item name="windowSplashScreenAnimatedIcon">@drawable/ic_app_foreground</item> <item name="windowSplashScreenIconBackgroundColor">@color/grey_700</item> <item name="windowSplashScreenBackground">@color/grey_700</item> <item name="postSplashScreenTheme">@style/Theme.LGConnect</item> </style> 将应用程序主题和启动器活动主题设置为新创建的样式 ... <application ... android:theme="@style/Theme.App.Starting" ... <activity ... android:theme="@style/Theme.App.Starting" ... 在onCreate的MainActivity方法里面添加这一行 ... override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) installSplashScreen() ...

回答 2 投票 0

为什么我看不到窗口上的框架?

我看不到窗户上的框架。 我附上了下面的代码 包员工.management.system1; 导入 javax.swing.*; 导入 java.awt.*; 公共类 Splash 扩展 JFrame {

回答 0 投票 0

启动画面中的淡入淡出图像

我正在尝试让徽标在启动画面中淡入,然后淡出。 在此之后,它将被重定向到另一个页面。 我找不到一种方法让它既可以淡入又可以淡出。 我想要...

回答 3 投票 0

Flutter 在启动画面中淡入和淡出图像

我正在尝试让徽标在启动画面中淡入,然后淡出。 在此之后,它将被重定向到另一个页面。 我找不到一种方法让它既可以淡入又可以淡出。 我想要...

回答 0 投票 0

Flutter Native Splash Screen image not appearing - Flutter (Dart)

我将 Flutter Native Splash screen 添加到我的依赖项中。颜色显示没有问题,但图像没有出现,我不知道为什么。 发布规范.yaml: #flutter 原生飞溅

回答 0 投票 0

Flutter - 如何创建带有文本和行进度指示器的原生启动画面?

我正在使用 Native Splash 创建启动画面。 如何创建带有一行文本和行进度指示器的启动画面(如下所示)? 依赖项: flutter_native_splash:^2.2.19

回答 1 投票 0

如何在不使用 Xcode 且仅使用 React Native 中的代码编辑器的情况下在 iOS 应用程序上添加启动画面和图标

我正在使用 React Native 构建一个 iOS 应用程序,终于要添加启动画面和图标了。指南/教程只指导我使用 xcode 和一些库。 我有一个飞溅 (1242 x 2436) 和图标 (

回答 0 投票 0

启动画面 api 正在显示 android 12 的操作栏

启动画面加载后,我得到一个操作栏,但我已将 postSplashScreenTheme 设置为无操作栏主题。这仅发生在 android 12 模拟器上。 启动画面加载后,我得到一个操作栏,但我已将 postSplashScreenTheme 设置为无操作栏主题。这只发生在 android 12 模拟器上。 <?xml version="1.0" encoding="utf-8"?> <resources xmlns:tools="http://schemas.android.com/tools"> <style name="Theme.App.Starting" parent="Theme.SplashScreen"> <item name="windowSplashScreenBackground">@color/white</item> <item name="windowSplashScreenAnimatedIcon">@drawable/splash_icon</item> <item name="postSplashScreenTheme">@style/Theme.Design.NoActionBar</item> <item name="windowSplashScreenIconBackgroundColor">@color/blue</item> <item name="windowSplashScreenAnimationDuration">800</item> <item name="android:forceDarkAllowed" tools:targetApi="q">false</item> </style> </resources> 在启动器活动中添加安装功能 class MainActivity : Activity() { override fun onCreate(savedInstanceState: Bundle?) { installSplashScreen() super.onCreate(savedInstanceState) setContentView(R.layout.main_activity) ... https://developer.android.com/guide/topics/ui/splash-screen/migrate#migrate_your_splash_screen_implementation 我在 onCreate 中调用 actionBar?.hide(),似乎按预期工作。 actionBar?.hide() 如果您使用 Androidx SplashScreen 兼容库,请将此添加到您的启动画面主题中 <item name="postSplashScreenTheme">@style/Theme.App</item> 喜欢: <style name="Theme.App.Starting" parent="Theme.SplashScreen"> <!-- Set the splash screen background, animated icon, and animation duration. --> <item name="windowSplashScreenBackground">@color/...</item> <!-- Use windowSplashScreenAnimatedIcon to add either a drawable or an animated drawable. One of these is required. --> <item name="windowSplashScreenAnimatedIcon">@drawable/...</item> <!-- Required for animated icons --> <item name="windowSplashScreenAnimationDuration">200</item> <!-- Set the theme of the Activity that directly follows your splash screen. --> <!-- Required --> <item name="postSplashScreenTheme">@style/Theme.App</item> </style> 我花了一天时间来解决这个问题。除此问题外,Android Studio 无法在 Android 12 及更高版本上运行该应用程序。我不得不手动运行它。我发现问题是由模拟器引起的。 当我在真实设备上测试应用程序时,我注意到 AppBar 没有出现。但是我发现了另一个问题。在 Android 9 设备上,SplashScreen 没有出现,但在 Android 12 设备上完美运行 'androidx.core:core-splashscreen:1.0.0-beta02'. Appbar 仍然显示在模拟器上,但在real device 上没有问题。以下实施适用于所有 Android 版本。 值/styles.xml <?xml version="1.0" encoding="utf-8"?> <resources xmlns:tools="http://schemas.android.com/tools"> <!-- Theme for MainActivity and its fragments --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> <item name="android:windowActionBarOverlay">true</item> <item name="windowActionBarOverlay">true</item> <item name="android:windowDrawsSystemBarBackgrounds">true</item> <item name="android:statusBarColor">@color/black_transparent</item> </style> <style name="Theme.App.Starting" parent="Theme.SplashScreen"> <item name="windowSplashScreenBackground">#ffffff</item> <item name="windowSplashScreenAnimatedIcon">@drawable/logo_splash</item> <item name="windowSplashScreenAnimationDuration">200</item> <item name="android:windowSplashScreenBehavior" tools:targetApi="tiramisu">@drawable/logo_splash</item> <!-- Set the theme of the Activity that directly follows your splash screen. --> <item name="postSplashScreenTheme">@style/AppTheme</item> </style> </resources> main/AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"> <application android:name=".MyApplication" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/Theme.App.Starting"> <activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/Theme.App.Starting"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".OtherActivity" android:parentActivityName=".MainActivity" android:screenOrientation="portrait" android:theme="@style/AppTheme"/> </application> </manifest> MainActivity.java public class MainActivity extends AppCompatActivity { protected void onCreate(Bundle savedInstanceState) { // Load things that should be loaded before rendering MainActivity. loadBeforeSplash(); // Handle the splash screen transition. splashScreen = SplashScreen.installSplashScreen(this); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // Other MainActivity stuffs } }

回答 4 投票 0

Flutter 中的“native_splash_screen”库不工作

我是一名刚开始学习Flutter的初级开发者。 我目前正在尝试使用名为“native_splash_screen”的库来应用启动画面,我听说可以轻松应用它。 我

回答 0 投票 0

一些安卓手机出现闪屏后出现白屏 - IONIC Cordova

我的移动应用程序是由 IONIC Cordova 构建的。 我们在某些 android 手机(在大多数设备上工作正常)中出现闪屏后出现白屏。当白屏来临时,我们正在...

回答 1 投票 0

android项目启动画面中的图像大小问题

我在我的android项目中做了一个splash screen,我用了一张图片。问题是图像填满了整个屏幕并且被剪切了,因为图像显示了 splash screen cut 这是我的...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.