I think you have to set the width of each item to 0px. then the
weighting will override this?  seems to work for me.

It's a shame that the docs are so spartan.

On Nov 27, 4:41 am, Romain Guy <[email protected]> wrote:
> Hi,
>
> What doesn't work exactly? What are you trying to do and what is the result?
>
> On Thu, Nov 26, 2009 at 4:42 AM, Business Talk
>
>
>
>
>
> <[email protected]> wrote:
> > I have a simple horizontal linear_layout  with bunch of image views in
> > it. the trick is that the views have different widths, relative to the
> > size of their parent (the linear layout). I set the layout's weightSum
> > to a 100 and the layout_weight to let's say 10 of one view and 15 of
> > the other, on so on. And it did not work. I also tired using float
> > values setting the weightSum to 1.0 and the layout_weight of the image
> > views to 0.2 and 0.3 and so on. But it didn't work either. I did
> > search this group for any references to the weightSum but found
> > nothing. Any ideas how to handle it?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them- Hide quoted text -
>
> - Show quoted text -

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

Reply via email to