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. How to control window-panning when virtual keyboard gets displayed

Hi,

is there any way to control the amount that the activity-window gets
scrolled up when the virtual keyboard gets displayed? The default
(when panning is enabled for that Activity in the Manifest) is to pan
exactly that far so that the user can still see the EditText or
whatever the user wants to edit.

Now I have an EditText below said EditText that dynamically changes
text if text gets entered into the EditText above. I'd like to scroll
the window a little further up so that both EditTexts get displayed.
And I don't want to use a ScrollView, just the normal mechanism that
get's triggered when you open up the virtual keyboard.

Any pointers to the right API are very welcome!

Thank you             Ralf

-- 

2. Need Help : How to call Activity.finish() being in a view??

Hi All

This is a very basic & a whacky question.

I have an activity class which has a setContentView() for a class
which is a view. All my activities are done in the view. Now i need to
call Activity.finish() so my whole acticity is closed when i opt for
an exit of the app.


Had i been in an activity class, i can easily call this as
"this.finish()" but how do i do this being in a View?


Inshort how do  I do a proper general exit/cleanup when my app closes?
How do i call an activity.finish() being in view?


Please do shower some light on this.


thanks
Latha

--

3. root == jailbreak ?

4. SQLiteDatabase lifecycle and threads

5. Table Row

6. Nexus One - Geocoder causes IOException - works perfectly with other devices and emulator

7. How to set a default item in a spinner drop down list