You can use textView.getLayout().getLineStart(int line)
and getLineEnd
to find the character offsets in the text.
Then you can just use textView.getText().substring(start, end)
-- or subsequence if you are using Spannables for formatting/etc.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…