How to move a ImageButton dynamically?

我的未来我决定 提交于 2019-12-11 07:32:04

问题


I'm new to Android

I need to move the ImageButton dynamically, Like when i click the button it needs to be relocated into a new position. Im using AbsoluteLayout.


回答1:


Never ever use AbsoluteLayouts. Use animations instead. imageView.startAnimation(ANIMATION); You can find examples from google here and here



来源:https://stackoverflow.com/questions/5180837/how-to-move-a-imagebutton-dynamically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!