setting max height of listview with initial height is wrap content(it may be empty)

by jalandar » Tue, 13 Jan 2009 20:50:32 GMT


Sponsored Links
 Hello everybody I want set initial height of list view with wrap
content, and later it will be expanded as per data added to specific
limit of height. I used wrap_content for height and android:maxHeight
="100px", but it is not working properly the list grows in height
beyond the maxHeight as the list item added.
Is there any other solution.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Text in a image button and updating that text at run time.

I have a question.  Is it possible to have an image button, with text
also in the button, and have part of that text change.

Here is the situation.  I want the button to be pretty wide.  To the far
left of the button, I want an image.  Next to the image I want a label
such as "Button 1"  Then to the far right of the button a counter of how
many times the button has been clicked.  If so can someone supply the
XML code snippet that will get it done.

Thanks,
Kevin


--~--~---------~--~----~------------~-------~--~----~

2. Many Lists in one Layout ?

hi all,,
I want to set some lists in one layout,
but I found it's only recognize the first <ListView .
how to write xml file ?
anyone help?
--~--~---------~--~----~------------~-------~--~----~

3. Looking for presenters for the Silicon Valley Android meetup?

4. Live Streaming

5. How to get the View used my service?

6. Finding if two line segments intersect

7. loading apk resources into a WebView