Hi,

You could use an AbsoluteLayout and specify android:layout_x and
android:layout_y in the children.
However, AbsoluteLayouts aren't commonly used. Are the buttons really
positioned in some arbitrary location? If they are just a few pixels away
from a corner or edge or some sort of anchor, there are better ways to do
that.

Cheers,
James

On Mon, Oct 5, 2009 at 7:13 AM, zeeshan <genx...@gmail.com> wrote:

>
> can anybody help ? waiting for the reply
>
> On Oct 5, 2:04 pm, zeeshan <genx...@gmail.com> wrote:
> > Hi Dear,
> >
> > i am trying to display a linear layout , say at setpadding
> > (10,10,0,0);
> > now i need to put some buttons at particular xy position in layout.
> >
> > Button button = new Button(_context);
> > button.setPadding(xposition, yposition, 0, 0);
> >
> > layout.addView(button);
> >
> > button position doesn't seem to work in that way.
> > can anybody suggest how can i set button position in layout?
> >
>

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

Reply via email to