本帖最后由 homg92 于 2014-09-25 13:07:25 编辑

解决方案 »

  1.   

    看你emptyview和listview是怎么布局的,会不会是因为你的emptyview把listview给覆盖了
      

  2.   

    是的,确定。只执行了getcount。
      

  3.   

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/content_bg" >    <ListView
            android:id="@+idlistview"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_margin="10dp" />        <TextView
                android:id="@+id/list_empty_tv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:text="@string/remind_listview_empty"
                android:textSize="15sp"
                android:visibility="gone" /></RelativeLayout>