pullToRefreshGridView里面不显示数据

来源:互联网 发布:页面加载完毕后执行js 编辑:程序博客网 时间:2024/05/19 20:58

今天遇到一个情况就是将适配器里面的Integer类型换成实体类后,页面不现实数据了,后来将grid的告诉设成填充父容器就好了,可能是开源控件的一个bug吧,原先Integer类型的就没事,换成bean后必须强制设置高度填充父容器。


    <com.handmark.pulltorefresh.library.PullToRefreshGridView
        android:id="@+id/grid"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginLeft="16dp"
        android:layout_marginRight="16dp"
        android:layout_marginTop="20dp"
        android:horizontalSpacing="10dp"
        android:listSelector="#00000000"
        android:numColumns="3"
        android:scrollbars="none"
        ptr:ptrMode="both"
        android:verticalSpacing="10dp" />


0 0
原创粉丝点击