I want to create a AutoScale TextView
, I needed to access the size of the text and length via code.
I've been searching the Internet for quite a while, but I'd like to learn and make my own code.
I want to create a AutoScale TextView
, I needed to access the size of the text and length via code.
I've been searching the Internet for quite a while, but I'd like to learn and make my own code.
To get the size of the text via code use:
seuTextView.getText().length();
To get the font size of the text via code use:
seuTextView.getTextSize();
I hope I have helped.
Att. Jeiferson