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.
精彩评论