2012-03-09 65 views

回答

0

我不知道這是否是這就是你想要但你可以簡單地去XML(與拖n個墨滴沒有圖形佈局),切ImagaView代碼並將其放置在滾動型佈局之外,

只記得滾動型可父親只有一個對象,這樣你們可以在你的圖像從本

創建的LinearLayout

<ScrollView 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_alignParentTop="true" 
     android:layout_above="@id/adView1"> 


    <RelativeLayout 
     android:id="@+id/relativeLayout2" 
     android:layout_width="fill_parent" 
     android:layout_height="352dp" > 

    <ImageButton 
     android:id="@+id/imageButton1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:src="@drawable/buttongod" /> 

</RelativeLayout> 

</ScrollView> 

TO THIS

<ScrollView 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_alignParentTop="true" 
     android:layout_above="@id/adView1" 


    <RelativeLayout 
     android:id="@+id/relativeLayout2" 
     android:layout_width="fill_parent" 
     android:layout_height="352dp" > 


</RelativeLayout> 

<LinearLayout 
android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 


<ImageButton 
     android:id="@+id/imageButton1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:src="@drawable/buttongod" /> 

</LinearLayout> 

</ScrollView> 
+0

沒有。用戶必須這樣做......是這樣的:http://s019.radikal.ru/i601/1203/d0/27823f090029.jpg – user868395 2012-03-10 23:40:17