atom feed2 messages in Change View position at runtime
FromSent OnAttachments
gugaDec 9, 2007 9:13 pm 
dale...@gmail.comDec 10, 2007 5:13 pm 
Subject:Re: Change View position at runtime (
Date:Dec 10, 2007 5:13:18 pm

On Dec 10, 12:13 am, guga <> wrote:

hello there, i might be wrong but it seems like i can't find a way to change the position of a view/viewgroup/surfaceview at runtime.

is it doable or not?

The position of views is controlled by the layout of their parent. The simplest way to absolutely control position is to use an android.widget.AbsoluteLayout as the containing class and then you have complete control of where the child views are placed within this container. You just use setLayoutParams on the child view with an instance of android.widget.AbsoluteLayout.LayoutParams and you can move it.

To smoothly animate moving around the screen look at the animation support: