statusbar
仅在第一次打开应用程序时出现半透明问题。看一下屏幕截图:
打开时会
Navigation Drawer
出现此错误,但仅在第一次打开应用程序时出现。当我关闭我的应用程序并重新启动它时,一切正常。
这是我使用的样式的 XML,其中包括半透明状态栏:
<resources>
<!-- Base application theme. -->
<style name="TransTheme" parent="android:Theme.Holo.Light">
<item name="android:windowBackground">@drawable/actionbar_background</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:fitsSystemWindows">true</item>
<item name="android:actionBarStyle">@style/ActionBar.GreenStyle</item>
</style>
<style name="ActionBar.GreenStyle" parent="@android:style/Widget.Holo.Light.ActionBar.Solid">
<item name="android:background">@drawable/actionbar_background</item>
</style>
</resources>