Android Drag and drop images on the Screen?

后端 未结 5 1495
太阳男子
太阳男子 2020-11-27 19:36

I m working on project user to move the image in one position to Another position on the screen. I have written a sample code to move the image but the problem here is if I

5条回答
  •  孤城傲影
    2020-11-27 19:42

    That's because you have put everything in a LinearLayout, which means you can't place the items where you want them, they are always one after the other. You can try to use a RelativeLayout instead. If that is not flexible enough, you should look at Canvas.

提交回复
热议问题