ListView second line height

barx

Well-Known Member
Licensed User
Longtime User
Hi All

I'm populating a listview with 2 lines. Line 1 is a heading while line 2 is a description. The descriptions are sometimes too long to fit the width of the listview. Now, it looks like the text wraps as I can just see the tops of the wrapped text at bottom of list item. I believe you can change the height of the item BUT is it possible to have different heights for if text wraps and if it does. i.e. size to match text?

If it's not possible, should this be achieved with a scroll view. The list is populated from DBUtils.ExecuteListView.

Thanks
 

barx

Well-Known Member
Licensed User
Longtime User
Thanks Klaus
 
Upvote 0

eps

Expert
Licensed User
Longtime User
Actually you might be able to, if you use a combination of listview and listview with bitmap. With one being a single line height and the other a double line height... I haven't tried this tjo, so it is a guess... See another thread with the use of bitmap listview and listview for mixed formatting..
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
Thanks for the tip eps. I missed this post other day. Have now changed to a scrollview. Will try it out in future though.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…