zoukankan      html  css  js  c++  java
  • getview不执行

    <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@color/gray" >
    
            <com.wbh.hoge.appysdw.view.pullrefreshview.PullToRefreshListView
                android:id="@+id/lsv_projectitem_collection"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:cacheColorHint="@android:color/transparent"
                android:divider="@null"
                android:choiceMode ="singleChoice"
                android:fadingEdge="none"
                android:scrollbars="none" >
            </com.wbh.hoge.appysdw.view.pullrefreshview.PullToRefreshListView>
        </FrameLayout>
    
        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@color/white" >
    
            <com.wbh.hoge.appysdw.view.pullrefreshview.PullToRefreshListView
                android:id="@+id/lsv_projectitem"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:cacheColorHint="@android:color/transparent"
                android:divider="@null"
                android:choiceMode ="singleChoice"
                android:fadingEdge="none"
                android:scrollbars="none" >
            </com.wbh.hoge.appysdw.view.pullrefreshview.PullToRefreshListView>
        </FrameLayout>
    

    第一个名字是list_find的View高度是match_parent,已经把空间占满,导致第一个名字为list_article的View没有显示的空间,这样就导致这个View不执行getView方法,数据显示不出来。

    另外如果view的getCount结果为0,也不执行getView方法。

    上面那个framelayout 能显示,可以执行,下面的就没地方了,所以不执行。

  • 相关阅读:
    vue的工作机制
    koa中的执行顺序
    vue项目中的keep-alive缓存
    vue项目中组件的重新初始化
    常用的JS代码块收集
    每个程序员都必须遵守的编程原则--转了
    自己写操作系统 2
    自己写操作系统 1
    【转】Hadoop安装教程_单机/伪分布式配置_Hadoop2.6.0/Ubuntu14.04
    ubuntu14.04LTS openssh-server 手动安装配置步骤
  • 原文地址:https://www.cnblogs.com/hoge/p/6237156.html
Copyright © 2011-2022 走看看