How do I access text size (TexView) and text box (TextView) compression via code?

-1

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.

    
asked by anonymous 12.01.2016 / 20:40

1 answer

2

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

    
12.01.2016 / 21:08