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.
Attachments
device.png
device.png (26.6 KiB) Viewed 187 times
device1.png
device1.png (41.47 KiB) Viewed 187 times
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests