Android Question Auto-adjust the height of a label according to the text contained.

vecino

Well-Known Member
Licensed User
Longtime User
Hello, I do not know if it can be done in an easy way.
What I need is for a label to increase or decrease its height in relation to the lines of text it has.
The width is fixed. It should not be changed.
Thank you.
 

DonManfred

Expert
Licensed User
Longtime User
Check customlistview source and check the AddTextItem code to get some inspiration

OR just use the forumsearch; i´m sure there a plenty of similar questions.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
...OR just use the forumsearch; i´m sure there a plenty of similar questions.
I have searched and found many threads of "how to change the size of the text to fit the label", but I have not found "how to change the height of the label to fit the text".
Thank you.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Thank you :)

Certainly, I also have a hard time finding something in the forums because my English is terrible, and I do not know what words to use in the searches.
Many thanks friends.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Fabulous!!!
It's just what I need.
-2 to auto-adjust, I had not read it in the documentation. I'll have to give it a new revision.
 
Upvote 0
Top