在应用程序里已经自定义了窗口标题栏,但是运行程序的时候会先显示默认的标题栏,我添加了一个透明背景,但是无效。
custom_title.xml:
<resources>
<style name="CustomWindowTitleBackground">
<item name="android:background">@android:color/transparent</item>
</style>
<style name="CustomTheme" parent="android:Theme">
<item name="android:windowTitleSize">35dip</item>
<item name="android:windowTitleBackgroundStyle">@style/CustomWindowTitleBackground</item>
</style>
多谢帮忙~