I've got a label on a layout that can't grow. (It takes into account dip etc so it will be different sizes for different devices but there isn't the flexibility for it to become vertically larger)
I've then got a large paragraph of text that potentially will be too big to all be displayed in the label. What I want to do is trim that text and alter it to indicate to the user there is more to read. (On a click of the label I'll show it in a dialog.) So the label should be filled fully but the text won't just disappear.
Are there any libraries or functions I can use to determine if an string will fit entirely inside a label?
Thanks.
I've then got a large paragraph of text that potentially will be too big to all be displayed in the label. What I want to do is trim that text and alter it to indicate to the user there is more to read. (On a click of the label I'll show it in a dialog.) So the label should be filled fully but the text won't just disappear.
Are there any libraries or functions I can use to determine if an string will fit entirely inside a label?
Thanks.