我使用自己的主题创建了一个SplashScreen ...
<style name="AppTheme.Launcher">
<item name="android:windowBackground">@drawable/splash_test</item>
</style>
...在app加载时应用为app的主题...
android:theme="@style/AppTheme.Launcher"
...然后在onCreate of started Activity中更改为AppTheme:
setTheme(R.style.AppTheme);
super.onCreate(savedInstanceState);
所有的作品,但我有一个有趣的问题。使用Launcher主题的所有屏幕预览,现在看起来像:
我不能这样工作。 =)
我怎样才能避免这个“问题”?
我不认为有办法解决这个问题,因为它是活动的主题