I have some squarish TextViews (with different dynamic sizes(I don’t know them while I’m developing)) in my Application and want to set their text. But if I say TextView.setText(); the text font is pretty small. If I set TextView.setFontSize sometimes the text is not fully displayed (remember: they have a dynamic size). So my question: how can I give the text the perfect font (using the full space of the button AND being fully displayed) or make the Text squarish itself so that it fills the whole space of the TextView?
Thank You
I have some squarish TextViews (with different dynamic sizes(I don’t know them while I’m
Share
You may use Paint.getTextBounds() like this: