系统样式问题
2016-02-23 00:00
183 查看
摘要: 系统样式使用AppTheme时,开机启动页面会有个白色闪屏问题,两种解决方案。
第二种,设置背景图
第一种,设置透明
<style name=
"AppTheme"
parent=
"android:style/Theme.Black.NoTitleBar.Fullscreen"
type=
"text/css"
><item name=android:windowIsTranslucent>
true
</item></style>
第二种,设置背景图
<!-- 为 Theme 设置背景图 --><style name=
"AppTheme"
parent=
"android:style/Theme.Black.NoTitleBar.Fullscreen"
type=
"text/css"
><item name=android:windowBackground>
@drawable
/splash_bg</item></style>
相关文章推荐