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. Problems Testing an Installation...

I was on the T-Mobile G1 Forum when a fellow who owned a G1 posted a
message seeking a Notepad Application for the G1. (BTW, Scanning the
topics there indicate that there is crying need for one on the G1.)

http://forums.t-mobile.com/tmbl/board/message?board.id=87&thread.id=2490

Well, I used Eclipse to package the Notepad application and posted it
to my webite. Then I posted a message inviting him and others to
download it and test it out on their G1s.

As you can see from the messages exchanged, when they try to install
it on their G1s, it seems to demand access to everything. (Not good.)
I used the default Android Manifest when I built the package.

Then, I try to download and install the Application myself on the
Emulator and it complained that this CAN'T BE DONE!!!!

Is there a way to resolve this problem? (There must be.)

A sincere thanks to any of the Google Android experts who can help me
with this.

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

2. Determining size of SD Card?

Hi All,

Can we determine the size of the emmualted sdCard though our Java File
API's.
i know its supported in 1.6 like

file.getTotalSpace()
file.getFreeSpace() etc....

but i can't get Android compile FileBrowser project using java 1.6 sdk.
it just don't recognize file.getTotalSpace() api.

FileBrowser project runs well for java 1.5 & 1.6, but it shows compile
errors the moment i introduce any java 1.6 specific api's.

I have updated the project settings & Windows / Preferences of Eclipse so
that it uses the java 1.6 sdk.
Even the JAVA_HOME & PATH System variables are updated to point to java 1.6
sdk.
and java -version & javac -version returns 1.6.

Does Android support's java 1.6 at all or not ?
Is there any way we could find the total space available in SD Card through
code?

Your help is much appreciated.

Thanks,
Shibbs

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

3. Quick notes on getting G1 and adb goign

4. Can't debug apps on G1

5. Emulator clock app are not the same time with the display on top bar

6. Req Info abt DDMS tool

7. Marketplace details now available