Monday, July 11, 2011

[android-developers] Re: Relative layout java

I've tinkered with it on and off today; some things work, like
Align_Parent_Bottom but Below does not in this scenario. I'm not sure
why. I'd say use a layout xml file and an inflater for as much of the
layout as you can. Then grab find the views post-inflate and set the
values you need.

On Jul 11, 12:06 pm, Robert Nekic <robertne...@gmail.com> wrote:
> If I try something similar by adding the child views to an activity
> with an empty RelativeLayout, things position OK.  But if I try your
> custom RelativeLayout class and add that to the activity, the child
> views overlapping.  Hmmm...
>
> On Jul 11, 11:48 am, Robert Nekic <robertne...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Whoops! Sorry I didn't notice that.  Yes, at a glance it looks
> > correct.  This doesn't really answer the question directly but have
> > you tried using a layout file instead?
>
> > On Jul 11, 11:34 am, JCC <banr...@gmail.com> wrote:
>
> > > but adding the "rules" isnt like defining the position of items?
> > > because on the second one for example I got to say that it should be
> > > below the first textview by saying
> > > ageParams.addRule(RelativeLayout.BELOW,viewNombre.getId());

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment