ActivityOptions.SetSplashScreenStyle(Int32) 方法

定义

设置打开活动的首选初始屏幕样式。

[Android.Runtime.Register("setSplashScreenStyle", "(I)Landroid/app/ActivityOptions;", "GetSetSplashScreenStyle_IHandler", ApiSince=33)]
public virtual Android.App.ActivityOptions SetSplashScreenStyle (int style);
[<Android.Runtime.Register("setSplashScreenStyle", "(I)Landroid/app/ActivityOptions;", "GetSetSplashScreenStyle_IHandler", ApiSince=33)>]
abstract member SetSplashScreenStyle : int -> Android.App.ActivityOptions
override this.SetSplashScreenStyle : int -> Android.App.ActivityOptions

参数

style
Int32

可以是或SplashScreen#SPLASH_SCREEN_STYLE_ICONSplashScreen#SPLASH_SCREEN_STYLE_SOLID_COLOR

返回

属性

注解

设置打开活动的首选初始屏幕样式。 这仅适用于尚未创建活动或进程时。

适用于 . 的 android.app.ActivityOptions.setSplashScreenStyle(int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于