yfleury Active Member Licensed User Longtime User Dec 24, 2018 #1 In xcustomlistview, I have to adjust height of label to fit text I try label.sizetofit I try label.height=200dip I can't find how to adjust height of label to fit to a text Do you have a solution. Attachments test.zip test.zip 5.1 KB · Views: 292
In xcustomlistview, I have to adjust height of label to fit text I try label.sizetofit I try label.height=200dip I can't find how to adjust height of label to fit to a text Do you have a solution.
Erel B4X founder Staff member Licensed User Longtime User Dec 24, 2018 #2 Haven't checked your code. You can call CLV.AddTextItem to create a text item at the right size. You can then add more views or see how AddTextItem works and implement it in your own code. Upvote 0
Haven't checked your code. You can call CLV.AddTextItem to create a text item at the right size. You can then add more views or see how AddTextItem works and implement it in your own code.
yfleury Active Member Licensed User Longtime User Dec 24, 2018 #3 Erel said: Haven't checked your code. You can call CLV.AddTextItem to create a text item at the right size. You can then add more views or see how AddTextItem works and implement it in your own code. Click to expand... AddTextItem work well. It display all text. But it add an item in list each time I have to display a long text. In B4A I can adjust label height with stringUtils. Maybe, for the holyday, make a wish for have something like su.MeasureMultilineTextHeight(label,label.text) Upvote 0
Erel said: Haven't checked your code. You can call CLV.AddTextItem to create a text item at the right size. You can then add more views or see how AddTextItem works and implement it in your own code. Click to expand... AddTextItem work well. It display all text. But it add an item in list each time I have to display a long text. In B4A I can adjust label height with stringUtils. Maybe, for the holyday, make a wish for have something like su.MeasureMultilineTextHeight(label,label.text)
Erel B4X founder Staff member Licensed User Longtime User Dec 25, 2018 #4 yfleury said: Maybe, for the holyday, make a wish for have something like su.MeasureMultilineTextHeight(label,label.text) Click to expand... All the code that you need is already there. Download the source code and see how AddTextItem is implemented. Upvote 0
yfleury said: Maybe, for the holyday, make a wish for have something like su.MeasureMultilineTextHeight(label,label.text) Click to expand... All the code that you need is already there. Download the source code and see how AddTextItem is implemented.
yfleury Active Member Licensed User Longtime User Dec 25, 2018 #5 I just see I have posted in the wrong forum. Please move it in IOS forum. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 26, 2018 #6 Please start a new thread. Upvote 0