Slacker Active Member Licensed User Longtime User Dec 12, 2013 #1 Hello folks, the question in pretty simply. As by Title, i have several label views which hold inside dynamic text. I need to set the height dynamically based on the text. I've seen StrUtils class to get the right height to set to view, but the problem is that i've placed 10 label views in vertical position: if i increase the height of 5° label for example, it could overlap the next one (6°). So i should change dynamically the "Top" property to all subsequent label views....is there some best practice or i have to "hard" code all ? Thank you.
Hello folks, the question in pretty simply. As by Title, i have several label views which hold inside dynamic text. I need to set the height dynamically based on the text. I've seen StrUtils class to get the right height to set to view, but the problem is that i've placed 10 label views in vertical position: if i increase the height of 5° label for example, it could overlap the next one (6°). So i should change dynamically the "Top" property to all subsequent label views....is there some best practice or i have to "hard" code all ? Thank you.
Erel B4X founder Staff member Licensed User Longtime User Dec 12, 2013 #2 Try to use CustomListView class. You can use AddText method or InsertTextAt to add dynamic text into the list. Upvote 0
Try to use CustomListView class. You can use AddText method or InsertTextAt to add dynamic text into the list.
Slacker Active Member Licensed User Longtime User Dec 12, 2013 #3 Ok Erel, i will try to use it, thank you. Upvote 0