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 get the view that is attached to an animation?

here is a pseudoCode

1. View myView = new View();
2. Animation myAnimation = new Animation();
3. myView.startAnimation(myAnimation);   // animation attached to the view
4. View myViewCopy = myAnimation.getAttachedView()

is there any way I can achieve the step in *line number 4*?

-- 

2. How to disable key press events!!

Dear all,

I need to disable the key events (any key pressed) for some predefined 
time. How the key pressed events be disabled?


Regards,
Pratik

--

3. Motorola XT800+

4. Building shapes with GL_TRIANGLE_STRIP or GL_TRIANGLE?

5. progress bar

6. Mod: Happy Easter

7. 'E-Mail Developer' button creating a lot of spam?