简体   繁体   English

在页面上自由移动imageview

[英]Freely move imageview around page

i'm using Eclipse to make an android app. 我正在使用Eclipse制作一个Android应用程序。 I'm a beginner and i'm wondering how on earth I can place an image on my page where ever I want. 我是一个初学者,我想知道究竟如何在我想要的页面上放置图像。 It keeps locking in certain places due to alignments. 由于对齐,它始终锁定在某些位置。 Surely you must be able to click the image view and drag it into the desired place?? 当然,您必须能够单击图像视图并将其拖动到所需的位置?? thanks 谢谢

If you use RelativeLayout or FrameLayout as a container, you can place the inner Views wherever you want. 如果将RelativeLayout或FrameLayout用作容器,则可以将内部View放置在所需的任何位置。 They still have to be aligned somehow, but by changing the margins they can be on every position in the parent. 它们仍然必须以某种方式对齐,但是通过更改边距,它们可以位于父级的每个位置上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM