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. Asset Image in WebView

Hi,

I'm trying to load an image (tried both gif and png) from my assets
directory, into a webview.

In my assets folder, I have an image called myImage.gif

Here's my code:

 WebView data = (WebView) findViewById(R.id.data)
 data.loadData("<IMG HEIGHT=\"42px\" WIDTH=\"42px\" SRC=\"file:///
android_assets/myImage.gif\" />", "text/html",  "UTF-8");


All that happens when I try it, is that I get a blank screen with a
empty 42px/42px box.

In logcat, I see the message:

03-30 00:21:14.398: DEBUG/WebCore(214): Console: Not allowed to load
local resource: file:///android_assets/myImage.gif line: 0 source:


What am I doing wrong?


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

2. Source Contibutions - was Howto build Android full source for X86 Architecture like EeePC(ASUS)

Hello, I have a question, that maybe is dumb, and sorry it this is a little
off-topic
I know a lot of people are working to port android to various devices,
enabling more drivers, options and tools like alsa. The thing that bothers
me is: are those modifications making into the android source tree somehow?

I ask that because I have interest into building android to my eeePC
(currently running a live old version of android), but I do not want to
reivent the weel and do the same work other people, probally more capable
than me, already did.

Thanks in advance.
--
Iuri Fiedoruk, Developer Engineer.

http://www.greenneko.com - Solues em Web & Design - Porto Alegre, RS,
Brazil.
Sent from: Porto Alegre RS Brazil.



























--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. How to make translucent control just like 'zoom' in Pictures

4. where can i find widget interface for NBA Game Schedule?

5. MenuItems and Typefaces

6. Arabic localization project

7. dispatchTouchEvent works differently when finger hold on touch screen in G1 & emulator