:

> Hello! How do you get the maximum number of rows in a TextView? I try this:
>
> getWindowManager().getDefaultDisplay().getMetrics(metrics);
> float width = metrics.widthPixels;
> float height = metrics.heightPixels;
> int lines = (int) (height/textView.getLineHeight());
>
> But this variant gives the wrong information.
>

Do you want to count the number of lines in a textview?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to