开发者

TextView height

开发者 https://www.devze.com 2022-12-24 19:13 出处:网络
I want to g开发者_开发百科et height of TextView and line number currently shown in that TextView.

I want to g开发者_开发百科et height of TextView and line number currently shown in that TextView.

How can I do that can any body help me about this matter ??


You can obtain the height in pixels of a currently displayed TextView by calling the getHeight() method.

If you divide this figure by the result of the getLineHeight() method, this should tell you how many lines are currently visible.

0

精彩评论

暂无评论...
验证码 换一张
取 消