• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Textview measure problem

id0001

Well-Known Member
Apr 20, 2010
142
23
Netherlands
I have encountered a problem with measuring the height of a textview. I can only seem to get the height for a textview with only 1 line of text but I need the height of the textview while wrapped.

My TextView's original height is 76dp (1 line of text)
My TextView's new height with more lines is still 76dp. Though it is displayed correctly.

Does anyone know how to get around this?

Help is very much appreciated.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones