Yoni
Yoni

Reputation: 1356

Android - Get height of single line from TextView with few lines

I have a TextView with few lines and i need to calculate just the height of one line, not the total TextView height. Example

Upvotes: 1

Views: 544

Answers (1)

creativecreatorormaybenot
creativecreatorormaybenot

Reputation: 126694

TextView's height divided by TextView's rows should give you the height of one row hence every line has the same height with one text size.

Upvotes: 2

Related Questions