Android-禁用应用程序的虚拟启动窗口 [英] Android - Disable dummy starting window of application

查看:80
本文介绍了Android-禁用应用程序的虚拟启动窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何实现这种效果.

I want to know how to achieve this effect.

我的应用程序(默认为所有),当单击启动器图标时,立即显示某种空的虚拟窗口,其中什么都没有发生,然后将布局加载到其中.

My app (default everything), when launcher icon is clicked, right away display some kind of a empty dummy window, where nothing is happening and then loads layout into it.

重"应用(例如YouTube,云端硬盘,Dropbox等)在启动时似乎在启动后等待,而没有显示该虚拟窗口并直接加载到就绪布局中.

"Heavier" apps like YouTube, Drive, Dropbox etc. when started, seem to wait after launch, without showing that dummy window and load right into ready layout.

任何想法如何做到这一点,或者我应该在哪里研究?

Any idea how to do this or where should I look into?

谢谢

//这与加载数据库无关,我应该在其中显示progressBar,恕我直言,这与活动存在之前的东西有关.

// this has nothing to do with something like loading database, where I should display progressBar, imho this has to do with stuff before activity exists.

推荐答案

<style name="Theme.MyTheme" parent="android:style/Theme" >
    ....
    <item name="android:windowDisablePreview">true</item>
    ....
</style>

但要谨慎使用

这篇关于Android-禁用应用程序的虚拟启动窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆