2012-03-09 8 views

Répondre

0

Je ne sais pas si c'est ce que vous voulez, mais u pourrait simplement aller à XML (aucune mise en page graphique avec glisser-déposer n), coupez le code ImagaView et placez-le en dehors de la mise en page ScrollView,

Rappelez-vous simplement ScrollView peut père qu'un seul objet si u peut créer un LinearLayout autour de votre image

dE CETTE

<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> 

À CE

<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

pas .. l'utilisateur doit faire ... comme ceci: http://s019.radikal.ru/i601/1203/d0/27823f090029.jpg – user868395

Questions connexes