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