What i want to do is to divide long text to pages, so I can display them one by one in one text view, when user hits next/prev button. What I need is to know te last displayed character index, but thats not so simple....
I have tried this:
int start = textView.getLayout().getLineStart(0);
int end = textView.getLayout().getLineEnd(textView.getLineCount() - 1);
String displayed = textView.getText().toString().substring(start, end);
frrom LINK
But getLayout returns null
Also using getWidth/getHeight is useless cause they returns 0 in "onCreate" function...
Thanks for any help !