我使用以下命令启动我的Scala SWT应用程序:
java -splash:splash.jpg -jar application.jar
在Mac OS X 10.9.1上使用JDK 1.6.0时,闪屏会立即打开(在实际应用程序窗口打开前几秒钟)。
当SWT应用程序窗口打开时,我使用以下代码关闭了闪屏:
// When the window opens for the first time close the splash screen if exists
val splash = SplashScreen.getSplashScreen
if (splash != null) {
s
我正试图在Visual Studio的Monodroid应用程序中实现一个.java闪屏,不管怎样,我希望闪屏能够从资源布局中获得内容视图。我试着这样做:
setContentView(R.layout.AppSplash);
还尝试使用:
setContentView(Resource.layout.AppSplash);
还有:
setContentView("@layout/AppSplash");
我得到的错误消息如下:
package R does not exist
其中R更改为资源或:
cannot find symbol
symbol : method set
我在我的项目中编写了闪屏代码,但ı想要在闪屏启动后1秒出现闪屏图像。你能创建一个关于这方面的示例代码块或提供源代码吗?
class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_splash)
if (UiHelper.hasInternetConnection(this)) {
l