本帖最后由 spenyfisher 于 2014-04-16 21:39:15 编辑

解决方案 »

  1.   

    补充一下,发现一个更神奇的。
    我把手机横过来ListView就显示出来了。难道是我布局的问题,贴出布局文件如下:<?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >
     <LinearLayout 
          android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">
        <TextView 
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="公告类型:"
            />
     <Spinner
            android:id="@+id/spinner_announce"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" 
            android:prompt="@string/announcePrompt"/>
      
     </LinearLayout>
      <ListView
               android:id="@+id/listView"
               android:layout_width="fill_parent"
               android:layout_height="fill_parent"
               >
        </ListView>
        <TextView 
        android:text="No Data" 
        android:id="@+id/ltvEmpty"
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent">
        </TextView>
        
    </LinearLayout>
      

  2.   

    你这里怎么创建了两个Map集合呢
      

  3.   

    是不是 sdk与adt版本不一样呢。
      

  4.   

    虚拟机版本低于2.2不能实现match_parent,换成fill_parent试试,另外Android开发不用真机真心不行,虚拟就又慢问题还多。毕竟做出来的东西都要在真机用的。
      

  5.   

    最下面的textview高度改成wrap content 然后weight设置为1就可以
      

  6.   

    注意,是把listview的weight设置为1