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. Two controls on a line?

Right, first things first. I'm no numpty. I'm a developer with over 15
years experience of developing in the Windows platform including
mobile apps.

I've figured out that Windows Mobile 7 is not the way I want to go as
I'll have to redevelop my apps into Silverlight and I'd rather learn
Android and get a decent phone.

So, while no numpty, I am new to Android development.

I'm having a few problems with Eclipse at the moment but I have been
able to get started with one of my most useful apps, a shopping list.
So, here's what I want. A view with two EditText controls on the same
line at the top with a listview beneath (with checkboxes).

So far I've only done samples with a LinearView and perhaps getting
over confident I tried creating a RelativeLayout. Not only did it not
work, the screen didn't show any controls!

What I want is a quick tutorial on achieving this and maybe some of
the events I need to be handling.

Many thanks in advance.

-- 

2. best place to get android ROMs ?

Hi,

Website apa ya yang terbaik dan terbanyak pilihannya untuk mencari
android ROMs ?

Saya cuman tau dua, xda-developers sama droidfroums.
Ada suggestion ?

btw, rom android itu banyak banget ya pilihannya.. saya pakai htc
desire.. bingung mesti milih yg mana... masa harus coba satu-
persatu? :D

-- 
"Indonesian Android Community [id-android]" 

3. help me please...

4. OOT makasih bwt om lucky

5. Simulating an actual keyboard.

6. Ask legend g detec memory car

7. openDatabase() fails on locked database