ScrollView里的fillViewport失效

最近在做一个项目我的布局

<com.handmark.pulltorefresh.library.PullToRefreshScrollView
        xmlns:ptr="http://schemas.android.com/apk/res-auto"
        android:id="@+id/pull_refresh_scrollview"
        android:background="@color/red"
        android:layout_width="fill_parent"
        android:layout_height="match_parent"
        android:fillViewport="true"
        ptr:ptrAnimationStyle="flip"
        ptr:ptrMode="both">
        <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent">
            <LinearLayout
                    android:id="@+id/layout_desc"
                    android:orientation="vertical"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
                <include android:id="@+id/calendarlayout"
                         layout="@layout/calendar"/>
                <LinearLayout
                        android:id="@+id/layout_content"
                        android:orientation="vertical"
                        android:layout_marginLeft="5dp"
                        android:layout_marginTop="10dp"
                        android:layout_marginBottom="5dp"
                        android:layout_marginRight="5dp"
                        android:layout_width="match_parent"
                        android:layout_height="420dp"
                        />
            </LinearLayout>
            <LinearLayout
                    android:id="@+id/search_noresult"
                    android:orientation="horizontal"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:visibility="gone"
                    android:gravity="center">

                <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="未搜索到任何结果"
                        android:layout_gravity="center"
                        android:textSize="18dp"/>
            </LinearLayout>
        </RelativeLayout>

</com.handmark.pulltorefresh.library.PullToRefreshScrollView>
为什么PullToRefreshScrollView不能够全屏呢

PullToRefreshScrollView的高度和宽度在哪设置的,没看到啊

先确认一下是PullToRefreshScrollView没全屏还是scrollview没全屏

我PullToRefreshScrollView的高度和宽度设置
android:layout_width="fill_parent"
android:layout_height="match_parent"

但是如果我将PullToRefreshScrollView改成ScrollView就可以全屏显示了,这是为什么啊

参照这个博客里面的代码,用PullToRefreshListView放在前头,scrollView 设置为listview的EmptyView,然后就可以了。亲测可行。

http://blog.csdn.net/wwhh393/article/details/9722199

scrollView是写在PullToRefreshListView下面的。不要写在里面。

我遇到这个问题了,直接用他的setMinimumHeight()就可以,没必要用fillViewport,而且PullToRefreshScrollView不是ScrollView,只是名字相似

最下面的LinearLayout应该设置align_parentBottom = true