pulltorefreshlistview显示最开始一页时有时不显示的问题解决

来源:互联网 发布:c语言中定义数组 编辑:程序博客网 时间:2024/06/05 19:19

今天在做下拉刷新时,最开始一页有时能够正常显示,有时显示空白,最后发现这里出了问题

<com.handmark.pulltorefresh.library.PullToRefreshListView
        android:id="@+id/listview_cvs_order"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:divider="#f6f6f6"
        android:dividerHeight="10dp" >
    </com.handmark.pulltorefresh.library.PullToRefreshListView>


这里只要把 android:layout_height="wrap_content"改成android:layout_height="match_parent"就可以解决这个问题了,每次都能够正常显示了  

0 0
原创粉丝点击