Get how many characters a line in Textview can have

Viewed 1775

Let's say we have a large String and many textviews which all have maxLines="1" and layout_width="match_parent"and a monospaced font.

I need to know how many characters of my string I can put in a Textview before it needs a new line.

It would be great if the solution could work with EditText too.

1 Answers
Related