I think I can be a bit more helpful. You basically have to use the addRule method of RelativeLayout.LayoutParams as shown here:
http://android-coding.blogspot.com/2011/06/set-relativelayoutalignparenttoprelativ.html On Feb 21, 9:43 am, Kookamonga <site...@yahoo.ca> wrote: > https://www.google.com/webhp?&ion=1#hl=en&output=search&sclient=psy-a... > > On Feb 21, 8:53 am, Marcin Orlowski <webnet.andr...@gmail.com> wrote: > > > > > > > > > Hi, > > > I am trying to set android:layout_alignParentTop and > > android:layout_alignParentLeft on view I create from code but I do not see > > a way to achieve that. Am I missing something or these params can only be > > set in XML? > > > Regards, > > Marcin Orlowski > > > *Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy... > > *Date In Tray* <http://bit.ly/dateintraypro> - current date at glance... > > WebnetMobile on *Facebook <http://webnetmobile.com/fb/>*, > > *Google+*<http://bit.ly/webnetmobile-gp>and > > *Twitter <http://webnetmobile.com/twitter/>* -- 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