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的高度和宽度在哪设置的,没看到啊

    评论

报告相同问题?

悬赏问题

  • ¥15 fluent的在模拟压强时使用希望得到一些建议
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 Web.config连不上数据库
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
  • ¥15 怎么配置广告联盟瀑布流
  • ¥15 Rstudio 保存代码闪退