I could notice that if the three views are created using exactly the same context, the "below" rule works fine. But my views come from different activities (but from the same application - I don't know if an Activity has *exactly* the same context as its application). In this case such rule does not work.
Is there a way it can work? Taísa On Tue, May 19, 2009 at 5:24 PM, Taísa Cristina <taisa.san...@gmail.com>wrote: > Anybody? > I do need it... > > Taísa > > > On Tue, May 19, 2009 at 4:36 PM, Taísa Cristina <taisa.san...@gmail.com>wrote: > >> >> Hi all, >> >> I need to populate a RelativeLayout (mainLayout) via code. I need view A >> to be aligned to its parent top edge, and B to be below A. >> >> I can correctly position A by using "RelativeLayout.ALIGN_PARENT_TOP" >> rule. >> >> Then I set an id to view A, and try positioning B below it by using >> "RelativeLayout.BELOW , viewA.getId()" rule. But I cannot get it working. B >> always get over A, not below. >> >> What am I doing wrong? >> >> Taísa >> > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---