In this case it's simply because ListView does not really know how to
wrap its content. Given the nature of ListView, computing the "wrap
content" height can be a problem. The next SDK handles that case in a
better way, but it's usually best to avoid using
layout_height=wrap_content with ListView. Note that you could use
pretty much any value instead of 0dip. Using 0dip just makes
LinearLayout go through a faster code path at layout time.

On Tue, Apr 1, 2008 at 7:33 AM, acopernicus <[EMAIL PROTECTED]> wrote:
>
>  OK....but...
>
>  (a) how are we supposed to know when to use layout_height="0dip"
>
>  and
>
>  (b) why does setting layout_height="0dip" magically solve the problem?
>
>  Anthony
>  >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to