滚动时额外 space 使用协调器布局

Extra space using coordinator layout while scrolling

在我的应用程序中我正在使用 CoordinatorLayout.When 我正在尝试滚动很多额外的 space 是 available.And 我在尝试时通过使用设置协调器布局 height.But 改变了它要更改显示额外 space.When 的选项卡,我在 tab1、tab2、tab3 表格中单击时,没有 issue.But 当我尝试处理 tab3、tab2、tab1 时,tab3 和 tab2 显示很多额外space.

1) In my main activity am using Observable scrollview.

    <?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/kudix_cordinator"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <android.support.design.widget.AppBarLayout
        android:id="@+id/appbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="?attr/colorPrimary"
        android:fitsSystemWindows="false"
        android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
        app:layout_collapseMode="pin">

        <android.support.design.widget.CollapsingToolbarLayout
            android:id="@+id/htab_collapse_toolbar"
            android:layout_width="match_parent"
            android:layout_height="250dp"
            android:layout_marginBottom="0dp"
            app:contentScrim="?attr/colorPrimary"
            app:titleEnabled="false">

            <ImageView

                android:layout_width="match_parent"
                android:layout_height="@dimen/parallax_image_height"
                android:background="@drawable/ic_launcher"
                android:fitsSystemWindows="true"
                android:scaleType="centerCrop"
                app:layout_collapseMode="parallax" />

            <android.support.design.widget.TabLayout
                android:id="@+id/tabs"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="bottom"
                app:tabIndicatorColor="@android:color/white"
                app:tabSelectedTextColor="@android:color/white"
                app:tabTextColor="@color/white" />

        </android.support.design.widget.CollapsingToolbarLayout>

    </android.support.design.widget.AppBarLayout>


    <android.support.v4.view.ViewPager
        android:id="@+id/kudix_club_viewpager"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginBottom="10dp"
        android:layout_marginLeft="15dp"
        android:layout_marginRight="15dp"
        app:layout_behavior="@string/appbar_scrolling_view_behavior"
        />
</android.support.design.widget.CoordinatorLayout>

每个选项卡片段包含不同类型的 UI。

实际上它正在从另一个 layout.The 进度对话框中获取我的列表视图高度,所以 API 继续调用。在那个 API 我正在设置协调器布局height.For 每个选项卡都在设置协调器布局高度。