<<What am I missing? How can I programmatically tell a container view to
look at its children again in order to resize if necessary?>>

example in api demos --- Views/Lists/6.ListAdapter Collapsed



On Wed, Apr 1, 2009 at 1:12 PM, Matthias <[email protected]> wrote:

>
> Hi,
>
> I am struggling over another layouting problem again. I render a
> ListView with ellipsized TextView elements, but those text views can
> expand in size when the user clicks it. The problem is: If the
> ListView doesn't already take the whole screen (e.g. because the total
> height of all visible elements is smaller than the screen height),
> then when expanding an element, the ListView's size doesn't also
> expand accordingly, still obscuring most parts of the now taller text
> view.
>
> I have tried practically everything that seemed reasonable to me to
> make the ListView get aware of the new height of its children,
> including calls to:
>
> invalidate()
> measure()
> recomputeViewAttributes(textView)
>
> on all participating views (the list view and its elements), but
> nothing works.
>
> What am I missing? How can I programmatically tell a container view to
> look at its children again in order to resize if necessary?
>
> Thanks!
> Matthias
> >
>

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