闪屏保证金问题?

UMA*_*MAR 4 android imageview

我使用以下代码显示启动画面,但它在底部显示边距.任何人都可以指导我在这里犯的错误吗?

我的图像分辨率为480 x 800.

    <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@+id/linearLayout1" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"
>
<ImageView android:src="@drawable/splash"
 android:layout_width="wrap_content" android:id="@+id/imageView1" android:layout_height="wrap_content"></ImageView>
</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)

表现:

<application android:name="MyApplication" android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".SplashScreen" android:configChanges="locale" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

Hou*_*ine 7

尝试添加android:scaleType="fitXY"到您的XML(在您的ImageView中)