In the google I/O presentation, google team says that we can disable the default splash screen. I want to do that but I couldn't find the way to do it.

Has anyone able to achieve this?

Later edit:

我误解了演讲者在视频中说的话.似乎你只能编辑默认的启动屏幕,而不能禁用它.

推荐答案

On Android 12, it's not possible to opt out of the splash screen. It' only possible to customize it: icon, window background, exit animation.

By default, the splash screen is shown from user touch until the first frame of your application is drawn, so to minimize the time during which the splash screen is shown, you can try to reduce the launch time of your application.

You can also implement you own exit animation so the transition from the splash screen to the app is more seamless.

Kotlin相关问答推荐

在KMP中使用koin将来自Android的上下文注入到SQLDelight Driver中

Kotlin协程挂起继续线程

将基于注册的服务转换为流

在Jetpack Compose中创建波浪式文本动画:顺序中断问题

我可以更改方法中泛型类的类型参数边界吗?

合并状态流

Mockk:对同一函数进行两次存根会忽略第一个行为

如何将消费者放入 Kotlin 的 map 中?

generic 类实例列表 - 调用采用 T 的函数

如何将 `when` 与 2 个密封类一起使用并获取内部值?

mutableStateOf 在 Jetpack Compose 中不记住 API 的情况下保持重组后的值

如何使用 Either monad 并避免嵌套 flatMap

伴随对象在变量更改时更改它的值

Kotlin 中的 Java Scanner 相当于什么?

launch 仅从 Kotlin 1.3 开始可用,不能在 Kotlin 1.2 中使用

Kotlin协程处理错误和实现

从命令行运行Java到Kotlin转换器?

在 suspendCoroutine 块中调用挂起函数的适当方法是什么?

Kotlin扩展函数与成员函数?

如何在不绑定ViewModel(MVVM)中的UI的情况下使用android导航?