2012-03-09 50 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