oushishenjingbing 2015-01-07 02:07 采纳率: 0%
浏览 5380

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不能够全屏呢
  • 写回答

7条回答 默认 最新

  • bdmh 移动开发领域优质创作者 2015-01-07 02:21
    关注

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

    评论

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大