2011-06-14 68 views

回答

1

在第二個列表視圖中使用android:layout_below="@+id/ScrollView01"將其位置設置爲第一個滾動視圖的下方。還設置android:layout_marginTop="50dip"到第二滾動視圖,得到第一滾動視圖和第二滾動視圖

之間一些餘量嘗試下面的代碼

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:background="#ffffff"> 
    <ScrollView 

     android:id="@+id/ScrollView01" 
     android:layout_height="wrap_content" 
     android:layout_width="fill_parent" 
     android:background="#000000"> 
     <RadioGroup 
      android:id="@+id/RadioGroup01" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content"> 
      <RadioButton 
       android:id="@+id/RadioButton01" 
       android:layout_width="wrap_content" 
       android:layout_height="wrap_content" 
       android:text="Radio Button....." /> 

     </RadioGroup> 
    </ScrollView> 
    <ScrollView 

     android:id="@+id/ScrollView02" 
     android:layout_height="wrap_content" 
     android:layout_width="fill_parent" 
     android:background="#000000" 
     android:layout_below="@+id/ScrollView01" 
     android:layout_marginTop="50dip"> 

     <RadioGroup 
      android:id="@+id/RadioGroup01" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content"> 
      <RadioButton 
       android:id="@+id/RadioButton02" 
       android:layout_width="wrap_content" 
       android:layout_height="wrap_content" 
       android:text="Radio Button....." /> 
     </RadioGroup> 
    </ScrollView> 

</RelativeLayout> 

由於 迪帕克

2

也許嘗試使用餘量,而不是填充?我不是100%確定這是否能解決您的問題,但值得一試。