android ScrollView的用法,该如何解决

android ScrollView的用法
我想给activity加入滚动条,xml文件格式为
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"   
     android:id="@+id/ScrollView" android:layout_width="match_parent"   
     android:layout_height="wrap_content" >    

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
<LinearLayout android:id="@+id/listlinear"
              android:orientation="vertical"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content">
              
              <ListView
                 android:id="@id/android:list"
                 android:drawSelectorOnTop="false"
                 android:layout_width="fill_parent"
                 android:layout_height="wrap_content"
                 />
</LinearLayout> 
 <TextView 
    android:id="@+id/neighborInfo"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
/>            
<Button 
    android:id="@+id/buttonstart"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    />    
<Button 
    android:id="@+id/buttonstop"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    />  
</LinearLayout>  
</ScrollView>
可是这样的结果是内容未全屏显示,则已经出现滚动条,致使内容未全屏显示,想实现内容大于屏幕时才出现滚动条,有人知道如何解决吗?

文章评论