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. Any Android Suggestion Page


Can anyone tell me if there is any Android Suggestion Page where I can
post suggestions.
I'm a member of and there are many very good ideas
in there.
It would be sad if the Android Developers don't get to know them.

Thanks to all that helped make Android be like it is now!

kind regards,



2. Ad supported applications

I've had a quick chat with someone at OpenX and it would appear that if 
you're willing to use XML-RPC to get your ads you can develop something 
which can make use OpenX Market to offer ad slots in your app (they have 
an example of using Java and XML-RPC to get ads at

The OpenX Market is in an Alpha stage at the moment, which means that if 
you get involved you get a good chance of steering development. I've 
floated the idea about grouping accounts so that one advertiser could 
share their ads amongst multiple apps, so that ball is rolling, but it's 
could be a way off yet.

More details about OpenX Market is available from

Hope it's useful.



3. Lunar Lander "game loop" (was: How fast is the T-Mobile G1?)

4. How to access Android Market without a G1? (Where to find one's submitted app)

5. Components overlap

6. new version of 1.0?

7. G1 still image capture question