I want to know number line a textView can display. i can get the number character in one line
int maxVisibleChars = textView.getPaint().breakText(text,
true, textView.getMeasuredWidth(), null);
But i don't know how many line my textView can display properly
Because my textView resize depend on screen resolution.
I need to know that. Thank you
I use this code to check how many lines in my textview,
MainActivity.java
activity_main.xml
Incase you are using a Textview with scroll and you need to know the displayed line count on screen (not a total lines),