splash-screen 相关问题

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

React-Native 初始屏幕可缩放至所有屏幕(iPhone、Ipad、平板电脑...)

我正在使用 React Native 开发一个应用程序,我想为其添加一个启动屏幕。我希望添加的启动画面在各种设备上看起来都不错,包括 iPhone 15 Pro Max、iPad Pro 11 i...

回答 1 投票 0

PyInstaller 的启动画面:主窗口未显示在顶部

我正在使用 pyinstaller 捆绑我的 Windows(操作系统)应用程序,并添加了启动屏幕选项。加载主窗口并关闭启动画面后,窗口保持在背景上(在其他

回答 2 投票 0

离子启动画面

我对 Ionic 比较陌生,并且对管理登录相关问题有疑问。在典型的应用程序流程中,首次登录后,通常会将用户重定向到主屏幕,然后...

回答 1 投票 0

启动画面和导航

首先,我想说我是反应原生/博览会的新手。 我有一个应用程序,我想通过避免应用程序中的某些加载状态来增强用户体验。 我有以下代码可以运行,但是...

回答 1 投票 0

当应用程序处于后台时,如何从通知中打开特定屏幕?

我正在尝试打开根据通知启动的特定屏幕。 我收到通知,但无法打开屏幕,所以请帮助我找出解决方案。 公共静态无效

回答 1 投票 0

如何更改Android 12闪屏持续时间?

我有这段代码,当我启动应用程序时,动画图标动画 800 毫秒,然后启动屏幕应该消失,但在消失之前它总共停留了大约 1500 毫秒。哈...

回答 2 投票 0

我正在java swing中创建启动屏幕,如何创建基于形状的窗口?

我成功地使用 JWindow 创建了一个无边框窗口,并使用 setOpacity() 函数创建了一个透明窗口。 我剩下的就是创建一个基于形状的窗口。我没有任何线索...

回答 1 投票 0

Flutter - 自定义默认启动屏幕图像

我一直在尝试自定义我的启动画面,但是我设置的图像具有白色背景而不是与背景混合 注意:我已经尝试仅使用徽标而不...

回答 1 投票 0

Python Scrapy 单页启动速度极慢

我是 Scrapy with Splash 的新手,希望得到一些建议。我正在尝试抓取网站 https://www.canada.ca/en/revenue-agency/services/forms-publications/forms.html,其中包含一个 lis...

回答 1 投票 0

react-native-bootsplash 全屏图像

有什么方法可以使用react-native-bootsplash将全屏图像(具有复杂的形状)设置为启动屏幕到android(react-native),而不是背景颜色和图标在屏幕上居中?

回答 2 投票 0

启动画面活动背景颜色

我的 Android 启动画面有问题。 在长时间的应用程序启动过程中向用户显示启动屏幕,但活动背景始终为黑色。我的意思是背景位图(飞溅我...

回答 4 投票 0

Android 闪屏问题

我正在尝试为 Android 创建启动屏幕,但是出现以下错误: 2024-01-12 10:48:41.126 22827-22827 AndroidRuntime com.almowafarati.app 你的文本E 致命异常:main 过程...

回答 2 投票 0

AnimatedSplashScreen PageTransitionType 错误

我在使用 AnimatedSplashScreen 时遇到问题,在我添加 pageTransitionType 时一切正常。然后我得到一个错误: 构建 AnimatedBuilder(anima...

回答 6 投票 0

带有 flutter_native_splash 的启动画面

⚠️ 在 flutter_native_splash 配置中找到参数“android 12”,但“android 12”不是有效的 flutter_native_splash 参数。 我会尝试使用

回答 1 投票 0

SplashScreen 徽标显示为圆形,而不是带圆角的方形。为什么?

我在Medium中使用了本教程:https://medium.com/@radomir9720/android-splash-screen-easy-setup-for-both-11-version-and-lower-and-12-287ccb86f9c7 这是我的徽标绘制: 我在Medium中使用了本教程:https://medium.com/@radomir9720/android-splash-screen-easy-setup-for-both-11-version-and-lower-and-12-287ccb86f9c7 这是我的徽标可绘制: <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="171dp" android:height="171dp" android:viewportWidth="171" android:viewportHeight="171"> <path android:pathData="M55.38,28L114.62,28A27.38,27.38 0,0 1,142 55.38L142,114.62A27.38,27.38 0,0 1,114.62 142L55.38,142A27.38,27.38 0,0 1,28 114.62L28,55.38A27.38,27.38 0,0 1,55.38 28z" android:fillColor="#303030"/> <path android:pathData="M61.68,88.94C61.68,102.24 72.16,113.02 85.02,113.02C97.87,113.02 108.35,102.21 108.32,88.94C108.32,82.57 105.88,75.15 101.74,69.07C96.96,62.02 90.87,58.12 84.66,58.12C70.83,58.12 61.68,76.69 61.68,88.94ZM69.33,88.94C69.33,79.14 76.91,66.01 84.66,66.01C92.63,66.01 100.7,79.34 100.7,88.94C100.7,97.87 93.67,105.13 85.01,105.13C76.36,105.13 69.33,97.87 69.33,88.94Z" android:fillColor="#ffffff" android:fillType="evenOdd"/> </vector> 应该这样看 以及图层列表 xml: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@color/Accent_900"/> <item android:drawable="@drawable/b4w_logo_splash" android:gravity="center" /> </layer-list> 但这就是应用程序中看到的样子 我该如何修复它?标志是一个171dp的清晰正方形,里面的图像是114dp(正方形/1.5) 我尝试执行中等教程中的所有步骤 根据此文档,Android本身将图像屏蔽为圆形,因此我们无法显式更改该图标视图的形状,但我们可以采取一些技巧将图标设置为带圆角的正方形。您可以使用 inset 属性来编辑图像并根据需要调整大小。 我已经尝试过你的图片,这个对我有用。 <inset xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/ic_egg" android:insetLeft="30dp" android:insetRight="30dp" android:insetTop="30dp" android:insetBottom="30dp"/>

回答 1 投票 0

在没有创建任何启动活动时如何增加启动屏幕的时间?

我没有为启动屏幕创建单独的活动,但添加了一个主题: <item name="android:windowBackground">@drawable/splash<...</desc> <question vote="-1"> <p>我没有为启动屏幕创建单独的活动,但添加了一个主题:</p> <pre><code>&lt;style name=&#34;SplashTheme&#34; parent=&#34;AppTheme&#34;&gt; &lt;item name=&#34;android:windowBackground&#34;&gt;@drawable/splash&lt;/item&gt; &lt;/style&gt; </code></pre> <p>并且刚刚更新了清单文件</p> <pre><code>&lt;activity android:name=&#34;.MainActivity&#34; android:theme=&#34;@style/SplashTheme&#34;&gt; &lt;intent-filter&gt; &lt;action android:name=&#34;android.intent.action.MAIN&#34; /&gt; &lt;category android:name=&#34;android.intent.category.LAUNCHER&#34; /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; </code></pre> <p>我的启动 XML 是:</p> <pre><code>&lt;FrameLayout xmlns:android=&#34;http://schemas.android.com/apk/res/android&#34; android:layout_width=&#34;match_parent&#34; android:layout_height=&#34;match_parent&#34;&gt; &lt;ImageView android:src=&#34;@drawable/splash&#34; android:layout_gravity=&#34;center&#34; android:layout_width=&#34;match_parent&#34; android:layout_height=&#34;match_parent&#34;/&gt; &lt;/FrameLayout&gt; </code></pre> <p>我找到了所有的答案,这些答案只是为了增加单独的飞溅活动的时间。</p> </question> <answer tick="false" vote="1"> <p><strong>这可能不是答案,但只是想清除一些东西。(或对于将来访问此链接的人)。</strong></p> <p>你知道吗..大多数人认为 <pre><code>Splash Screen</code></pre> 只是为了向用户展示 <strong>交互式 UI</strong>。</p> <p>但是相信我,它比你的期望更有用。 它提供了一种独特的方式来初始化应用程序的资源和检查属性等。</p> <p>您可以在用户与应用程序交互之前在后台进行网络检查或大量工作。 </p> <p><strong>这就是闪屏的真正动机</strong>,而不仅仅是显示应用程序徽标或欢迎消息。</p> <p>所以,保持简单。 </p> <p>现在,对于你..我建议..使用单独的<pre><code>Activity</code></pre>。 :) </p> </answer> <answer tick="false" vote="0"> <p>您上面给出的代码与我的情况几乎相同,即使我试图在没有任何额外活动的情况下增加时间,但这是不可能的,即使您可以使用处理程序和发布延迟来使用活动中的持续时间,但它会减慢应用程序的运行速度,基本上,您在持续时间内更改代码的活动最终会减慢整个应用程序的速度。</p> <p>如果您找到了任何替代解决方案,请告诉我,我是这项技术的新手,因此您的任何建议都是可以接受的。</p> </answer> </body></html>

回答 0 投票 0

c# - 在 Winform 中显示 SplashScreen 直到显示 MainForm

我有一个winforms应用程序,打开时它会闪烁。我认为这是因为winform框架是先加载的,然后才是组件加载的。我认为 SplashScreen 作为解决方案......

回答 1 投票 0

使用新的 Android API 创建的启动屏幕未显示。怎么了?

我正在尝试使用新的 Android API 添加启动屏幕。问题是我正在开发的应用程序有一个奇怪的白色启动画面,带有应用程序徽标,但我无法在所有代码中看到...

回答 1 投票 0

当 targetSdk 为 34 时,Android SplashScreen 自定义不起作用

我正在尝试更改 Android 13 及更高版本上的启动屏幕。我的 targetSdk 是 34。我正在使用 Jetpack Compose。问题是,如果我完全遵循 Google 的本教程并不重要...

回答 1 投票 0

Flutter 原生启动与 Lottie 动画

AndroidManifest.xml AndroidManifest.xml <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.test"> <application android:label="test" android:name="${applicationName}" android:icon="@mipmap/ic_launcher"> <activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <!-- Specifies an Android theme to apply to this Activity as soon as the Android process has started. This theme is visible to the user while the Flutter UI initializes. After that, this theme continues to determine the Window background behind the Flutter UI. --> <meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme" /> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <!-- Don't delete the meta-data below. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> <meta-data android:name="flutterEmbedding" android:value="2" /> </application> </manifest> 我将 JSON 动画文件放在我创建的 raw 文件夹中 res/drawable/launch_background.xml <?xml version="1.0" encoding="utf-8"?> <!-- Modify this file to customize your launch splash screen --> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@android:color/black" /> <!-- You can insert your own image assets here --> <item> <bitmap android:gravity="center" android:src="@drawable/splash_lottie" /> </item> </layer-list> 并在res/drawable中添加了splash_lottie.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <com.airbnb.lottie.LottieAnimationView android:layout_width="match_parent" android:layout_height="match_parent" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:lottie_autoPlay="true" app:lottie_rawRes="@raw/test_splash" app:lottie_speed="1.00" /> </androidx.constraintlayout.widget.ConstraintLayout> 我对drawable-21文件夹做了同样的事情 现在冷启动时甚至没有显示白屏,相反,当我打开应用程序时,需要一些时间并从初始颤动屏幕开始 在经历了深刻的评论历史之后 中篇文章:1 中篇文章:2 Youtube 视频 上面提到的这些推荐都使用了这种添加启动画面的方法,但它有很多缺陷。 使用 native_flutter_splash 包添加图像和 gif 作为启动画面,并供 Lottie 使用 lottie 包

回答 1 投票 0

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