I am using a textview to display a text which I am fetching dynamically. But the problem is that the size of the fetched data may vary from 10 to 30 characters. But I am using a textview with a fixed width. I can’t do anything on that. Is there any way to reduce the textsize or something dynamically in order to fit it to the fixed size textview?
Share
Check this answer, How to dynamically set textview height android
It gives you idea of how to set height of textview as per number of lines of text.