Children in GONE state are not measured. It's the whole point of using
the GONE visibility. If, for some reason, you need to measure a child
in the GONE state, then you will have to call measure() yourself.

On Fri, Jan 16, 2009 at 11:49 AM, skink <[email protected]> wrote:
>
>
>
> skink wrote:
>
>> i'm asking because now i'm extending LinearLayout and have no idea how
>> to measure itself and children, btw onLayout() getWidth/
>> getMeasuredWidth returns 0
>
> i'm sorry i forgot about most important thing: in my class (extending
> LinearLayout) onFinishInflate() method i set visibility of one of its
> child to GONE (layout has two children: one is always VISIBLE second
> is initially GONE).
>
> the question is: how to measure that child whose visibility is GONE?
> is it possible at all?
> >
>



-- 
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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to