设置启动界面(不带白屏)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Revival_Liang/article/details/52079005
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>

//主要是这两句,全屏显示和透明启动加上即可,最后在活动那里引用此风格ok!
    <item name="android:windowFullscreen">true</item>
    <item name="android:windowIsTranslucent">true</item>
</style>

展开阅读全文

没有更多推荐了,返回首页