J johnthomcode Member Licensed User Longtime User Apr 25, 2011 #1 I am sending variable length text to a listview. This results in multiple lines. I have tried setting the item height up front, but some have too much white space and some don't have enough. Can I automatically adjust this? Do I need another control (ScrollView)? Thanks!
I am sending variable length text to a listview. This results in multiple lines. I have tried setting the item height up front, but some have too much white space and some don't have enough. Can I automatically adjust this? Do I need another control (ScrollView)? Thanks!
Erel B4X founder Staff member Licensed User Longtime User Apr 26, 2011 #2 Not sure that it will work, but try the following code: Code: Copy lv.SingleLineLayout.ItemHeight = -2 lv.SingleLineLayout.Label.Height = -2 Upvote 0
Not sure that it will work, but try the following code: Code: Copy lv.SingleLineLayout.ItemHeight = -2 lv.SingleLineLayout.Label.Height = -2
J johnthomcode Member Licensed User Longtime User Apr 27, 2011 #3 Hi, Thanks for your help. Unfortunately that didn't work out. Would this be easier to accomplish in another view (like a ScrollView)? Thanks! -John Upvote 0
Hi, Thanks for your help. Unfortunately that didn't work out. Would this be easier to accomplish in another view (like a ScrollView)? Thanks! -John
Erel B4X founder Staff member Licensed User Longtime User Apr 27, 2011 #4 The other solution that I can think of is to convert your list to a Html table and show it with a WebView. This will work fine if you do not need to handle any events related to the list. Upvote 0
The other solution that I can think of is to convert your list to a Html table and show it with a WebView. This will work fine if you do not need to handle any events related to the list.
J johnthomcode Member Licensed User Longtime User Apr 28, 2011 #5 Hi, Thanks for your help. I think I will stick with ListView for now, then. Do you anticipate the ability to respond to events in WebView in the future? Clicking on a link will trigger an event on Android? Thanks! Upvote 0
Hi, Thanks for your help. I think I will stick with ListView for now, then. Do you anticipate the ability to respond to events in WebView in the future? Clicking on a link will trigger an event on Android? Thanks!
Erel B4X founder Staff member Licensed User Longtime User Apr 28, 2011 #6 This is a very good idea. It will be added to v1.50. Upvote 0
J johnthomcode Member Licensed User Longtime User May 4, 2011 #7 Wow! That's great news. If there's still time for another request, would it be possible to interact with links and submitted forms? Thanks! Upvote 0
Wow! That's great news. If there's still time for another request, would it be possible to interact with links and submitted forms? Thanks!
Erel B4X founder Staff member Licensed User Longtime User May 4, 2011 #8 WebView now has a new event: OverrideUrl(Url As String) As Boolean It gets called whenever the user presses on a link. If you return true from this event then you are "consuming" the link press and the WebView will not try to navigate to this link. Submitted forms will not make it to this version. v1.5 will be released in a few days. Upvote 0
WebView now has a new event: OverrideUrl(Url As String) As Boolean It gets called whenever the user presses on a link. If you return true from this event then you are "consuming" the link press and the WebView will not try to navigate to this link. Submitted forms will not make it to this version. v1.5 will be released in a few days.
F fabioferreiracs Member Licensed User Longtime User Jan 30, 2013 #9 auto height listview Erel said: Not sure that it will work, but try the following code: Code: Copy lv.SingleLineLayout.ItemHeight = -2 lv.SingleLineLayout.Label.Height = -2 Click to expand... Erel , now there a way to have auto height listview? Upvote 0
auto height listview Erel said: Not sure that it will work, but try the following code: Code: Copy lv.SingleLineLayout.ItemHeight = -2 lv.SingleLineLayout.Label.Height = -2 Click to expand... Erel , now there a way to have auto height listview?
Erel B4X founder Staff member Licensed User Longtime User Jan 31, 2013 #10 No. You can however use CustomListView class instead. Upvote 0