It depends on what you want to achieve. For common tasks, setGravity
and setPadding should do the job.
Also I don't think it's a good idea to rely on AbsoluteLayout unless
it is really necessary. You could try a more flexible LinearLayout and
use orientation & gravity to position children. In this particular
sample it won't make any difference, but more complicated layouts are
easier to maintain if you avoid hard-coded coordinates.

> And how can I set the coordinates without setting the width and height
> like with tv.layout(10,10,100,100); ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to