问题
after asking a question about Place Button just after end of TextView in multilline TextView
I give no answer but I think if find the position of end character of final line of textview , then my problem is solved .
so how could find out the end of text position in last line of textview?
tank's for your help and your attention.
回答1:
CharSequence cs = textView.getText();
int position = cs.charAt(cs.length()-1);
来源:https://stackoverflow.com/questions/17306961/how-could-find-out-the-end-of-text-position-in-textview