开发者

TextView height

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜