expanding list view with certain limit

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

expanding list view with certain limit

Postby jagtap.jj1 » Tue Jan 13, 2009 1:47 pm

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.
For clearance here are images
In device.png is empty list view, in device1.png I want to keep this list view the Participation list with max height
e.g 100px beyond that it wont be expanded.
device.png (26.6 KiB) Viewed 313 times
device1.png (41.47 KiB) Viewed 313 times
java-android developer
User avatar
Senior Developer
Senior Developer
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests