更改 android 样式的名称但应用崩溃

Changing names of android styles but app crashes

我的文件:

styles.xml:

<style name="AppTheme.NoActionBar">
    <item name="colorPrimary">@color/red</item>
    <item name="colorAccent">@color/blue</item>
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>

AndroidManifest.xml(部分):

<activity android:name=".actionbar.ActionBarSlider"
        android:theme="@style/AppTheme.NoActionBar"
        android:parentActivityName=".Home">
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="de.*****.testapp.Home" />
    </activity>


我改变后

<style name="AppTheme.NoActionBar"><style name="ActionBarSlider" parent="AppTheme.NoActionBar">

android:theme="@style/AppTheme.NoActionBar"android:theme="@style/ActionBarSlider"

应用程序在启动时崩溃。 我的错误是什么?

10-06 22:00:33.730 717-731/? W/WindowManager: java.lang.RuntimeException: Binary XML file line #31: You must supply a layout_height attribute.

在您的主要活动布局资源文件(第 31 行)中,您得到了一个没有 android:layout_height="" 属性的 LinearLayout 元素。