Java appcompat-v7,底部有黑色空间

Java appcompat-v7,底部有黑色空间,java,android,xml,android-appcompat,aide,Java,Android,Xml,Android Appcompat,Aide,之前我在MainActivity公共类上使用了通常的AppActivity扩展。一切都很好,应用程序显示真的是全屏的,但是在我在extends上使用AppCompatActivity之后,发生的事情是我制作的应用程序突然在底部出现了一个黑色的空白,这非常烦人。 以下代码位于main.xml中 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width

之前我在MainActivity公共类上使用了通常的AppActivity扩展。一切都很好,应用程序显示真的是全屏的,但是在我在extends上使用AppCompatActivity之后,发生的事情是我制作的应用程序突然在底部出现了一个黑色的空白,这非常烦人。

以下代码位于main.xml中

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:gravity="center"
    android:background="#FFFFFF">

    <WebView
        android:id="@+id/webView"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:visibility="visible" />

    <TextView
        android:layout_height="wrap_content"
        android:text="WebView SplashScreen"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:layout_width="wrap_content"
        android:layout_gravity="center"
        android:gravity="center"
        android:textSize="45sp"
        android:textColor="#01A1FC"
        android:id="@+id/splash"
        android:visibility="gone" />

</RelativeLayout>

然后,在res/values上输入styles.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>item>
    </style>

    <style name="NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
    </style>

</resources>

@颜色/原色
@颜色/原色暗
@颜色/颜色项>
这是我在AndroidManifest.xml中写的

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.sdev.nillacollection" >

    <uses-permission
        android:name="android.permission.INTERNET" />
    <uses-permission
        android:name="android.permission.ACCESS_NETWORK_STATE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/NoActionBar">
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

</manifest>


请帮助我,非常感谢:)

我已经运行了这段代码,它工作正常。。。你对类文件做过任何更改吗?你使用哪个sdk编译我的手机使用手势导航我在类文件中除了更改扩展名外没有做任何更改。我也使用了手势导航,并且已经使用AppCompactActivity进行了扩展,它向我显示了正确的结果可能是你缺少了一些东西创建新项目和支票