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. problem in using context.getCacheDIr() in emulator.

If you use SDK 1.1, there is no cache partition in the emulator, unless you
use the -cache <file> option.

If you use the preview SDK 1.5, then a cache partition file is automatically
created for you when you create an AVD, and
will be used automatically when you start the emulator with this AVD.


2. why is the sdk 1.5 prerelease releaed with obsolete documentation?


Well I know, that this is just a pre-release bla . bla . bla,
but still this doesn't justify everything.

Wouldn't it be nice to have the documentation at least halfways
Or if it's not accurate to add at some kind of 'obsolete' marker to
certain chapters.
This can be done very quickly and helps users.

The very first thing I looked up was docs/guide/developing/other-

Creating an Android project still talks about "activityCreator" ,
which doesn't exist any more.

Additionally the example still talks about (which
didn't even exist in the previous release under linux)

My suggestion to the Google team would be to at least mark all
chapters as obsolete, which might have to be rewritten.
If the document changes are already known, the obsolete marler could
already point to some kind of release notes file with the anticipated

In my example this could have been a reference to
"Where is activitycreator"

I think this suggestion might help to get rid of quite some un
necessary support questions.



4. porting/customization on beagle board

5. Google Earth?

6. Isn't it funny that ...

7. Programmatically delete a home-screen shortcut