0
滾動我有這樣的佈局:RelativeLayout的具有兩個列表視圖
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<TextView
android:id="@+id/campomodulo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="21sp"
android:textAppearance="?android:attr/textAppearanceMedium" />
<ListView
android:id="@+id/listagiocatori"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/campomodulo" >
</ListView>
<ListView
android:id="@+id/panchina"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/listagiocatori" >
</ListView>
第一列表視圖填充大約一半顯示,加入第二正下方的是,這兩個列表視圖的總高度超過屏幕,所以我有第二個listview的滾動。
我想要一般的滾動,不僅僅是第二個listview。我怎樣才能做到這一點?