0
点赞
收藏
分享

微信扫一扫

Android页面同步到导航栏

女侠展昭 2022-04-25 阅读 55
android

去掉导航栏前:

去掉导航栏后:

一、在项目values目录下的style.xml中添加如下配置:

    <style name="SplashTheme" parent="AppTheme">
        <item name="windowNoTitle">true</item>
        <item name="android:windowFullscreen">true</item>
        <!--<item name="android:windowBackground">@mipmap/splash</item>-->
    </style>

二、在AndroidManifest.xml中对应的Activity配置添加:

android:theme="@style/SplashTheme"
        <activity android:name=".login.LoginActivity"
            android:theme="@style/SplashTheme">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
举报

相关推荐

0 条评论