Comment déplacer imageview de ScrollView à RelativeLayout en faisant glisser n
drop (ou autre)? Android 2.2/2.3.3 + I Need imageview de prendre OnTouch et se déplacer en douceur vers relativeLayout ... Désolé pour mon anglais ..Déplacer imageview de scrollview à relativelayout
0
A
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>
Questions connexes
- 1. Déplacer ImageView autour de RelativeLayout
- 2. Habillage RelativeLayout dans ScrollView Problème
- 3. Animer ImageView à l'intérieur de RelativeLayout
- 4. Rotation imageView carré ScrollView
- 5. Scrollview et imageview
- 6. ScrollView ne joue pas bien avec RelativeLayout
- 7. IOS: scrollview désactivé sous ImageView avec animation
- 8. Obtenir ImageView au milieu de RelativeLayout - Android
- 9. Déplacer l'image de scrollView à View
- 10. Impossible de réparer ImageView à l'intérieur de RelativeLayout
- 11. Remplir dynamiquement ScrollView avec ImageView
- 12. définir ImageView sous un ScrollView
- 13. RelativeLayout n'est pas Scrollable dans ScrollView
- 14. Utiliser ImageView pour cacher/révéler un autre ImageView dans RelativeLayout
- 15. Android Scrollview et RelativeLayout boutons avec onTouch
- 16. Comment définir ScrollView comme parent d'un RelativeLayout?
- 17. Masquer RelativeLayout lorsque vous tirez ScrollView
- 18. RelativeLayout inside Scrollview agrandit plus que la taille
- 19. Comment faire ImageView remplir verticalement dans RelativeLayout
- 20. Déplacer ImageView sur HorizontalScrollView
- 21. Échelle RelativeLayout avec ImageView et la légende
- 22. Comment déplacer ImageView
- 23. Comment afficher certains ImageView dans un RelativeLayout?
- 24. J'ai utilisé [scrollView addSubView: imageView] mais imageView n'apparaît pas
- 25. problème de conception RelativeLayout: ScrollView entre un RelativeLayout et un bouton
- 26. Comment "ralentir" un ImageView dans un ScrollView?
- 27. Deux listview à l'intérieur scrollView
- 28. ScrollView diorders et supprime le contenu de relativelayout
- 29. Android: Prendre imageview au fond de mon relativelayout
- 30. Modifier les enfants dans scrollview où scrollview est un enfant de relativelayout dans android studio
pas .. l'utilisateur doit faire ... comme ceci: http://s019.radikal.ru/i601/1203/d0/27823f090029.jpg – user868395