重写onWindowFocusChanged()方法,在TextView对象调用getLineCount()@Overridepublic void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); int line = textView1.getLineCount(); Log.e("abc", "line:" + line);}
获取什么行数,具体点儿