I want to get the number of lines of a text view
textView.setText(\"Test line 1 Test line 2 Test line 3 Test line 4 Test line 5.............\")
textview.getText().toString().split(System.getProperty("line.separator")).length
It works fine for me to get number of lines of TextView.