I have a full-screen TextView holding a long Spanned that requires scrolling. The TextView\'s getLineCount() gives me the total number of lines used for the entire block of
int height = myTextView.getHeight();
int scrollY = myTextView.getScrollY();
Layout layout = myTextView.getLayout();
int firstVisibleLineNumber = layout.getLineForVertical(scrollY);
int lastVisibleLineNumber = layout.getLineForVertical(scrollY+height);