Android FadingActionBar LinearLayout与父项不匹配

Android FadingActionBar LinearLayout与父项不匹配,android,xml,android-layout,Android,Xml,Android Layout,我无法使我的线性布局正确地匹配父母。正如您在屏幕截图上所看到的,底部的空白不应被删除。如果我尝试直接将背景色应用于样式,我会得到一个奇怪的结果,即卡片上的每个视图本身都填充了背景色。 在我实现FadingActionBar之前,它就起作用了: 我的布局: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

我无法使我的线性布局正确地匹配父母。正如您在屏幕截图上所看到的,底部的空白不应被删除。如果我尝试直接将背景色应用于样式,我会得到一个奇怪的结果,即卡片上的每个视图本身都填充了背景色。 在我实现FadingActionBar之前,它就起作用了:

我的布局:

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    style="@style/AppBaseThemeCardBG"
    android:padding="@dimen/activity_standard_padding"
    android:orientation="vertical">

    <LinearLayout
        android:id="@+id/eventCard"
        style="@style/nowCardStyle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <com.mikebdev.douala.widget.RobotoTextView
            android:id="@+id/eventDate"
            android:textColor="@color/gray"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:typeface="roboto_condensed_light"
            android:textSize="@dimen/textSizeNormal" />

        <com.mikebdev.douala.widget.RobotoTextView
            android:id="@+id/eventHead"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:maxLines="2"
            app:typeface="roboto_condensed_light"
            android:textSize="@dimen/textSizeVeryLarge" />

        <com.mikebdev.douala.widget.RobotoTextView
            android:id="@+id/eventBody"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:typeface="roboto_condensed_light" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

    </LinearLayout>

</LinearLayout>

这肯定是库中的一个问题,我从来没有用没有填满整个视口的内容测试过它


我刚刚向Maven Central推出了一个新版本(3.1.2)的库,可以解决这个问题,请告诉我它是如何为您工作的。

这解决了这个问题。非常感谢:)