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. SQLite without Context?

I must access a SQLite Database from within a Service, but
SQLiteOpenHelper requires an Activity Context object which won't be
there when the Activity which spawned the Service is closed!

Is there any way to open an Activity Context-Agnostic SQLite
connection?

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

2. android widgets on WVGA

Hello Everyone,

I am trying to run widgets on wvga resolution emulator.
But with such a wide screen I thought I  could populate more number of
widgets but looks like the same number of widgets would fill as in hvga
screen.
I have set the *ro*.sf.lcd_density=220;
I could layout 3 clocks widgets;
When I set  *ro*.sf.lcd_density=160
even then I could just layout 3 clock widgets;
All the widgets look fine.
I want to know is it possible to configure the screen resolution to load
more number of widgets onto the screen by changing*.

*Is it possible that by keeping dpi=160 and wvga I can populate more widget
?

I am doing this exercise not from an app developer point of view but from
platform point of view.

-- 
with regards vishal

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

3. ADC2

4. How can I download a file from the internet?

5. Best/safest place to do cleanups(e.g. connection release) at Application level

6. Streaming Example?

7. Change color to another color in Drawable