Java IndexOutOfBoundsException设置盘(10…;10)末端超过长度3
有时,此错误“IndexOutOfBoundsException设置范围(10…10)超出长度3” 在editText.setSelection()中发生,即当我想重新关注editText.getText.toString().length()中的editText上一个值时 例如: editText.setSelection(editText.getText.toString().length()) 你知道为什么会这样吗?如何解决这个问题???在编辑文本时使用ClearPans() 例子: editText.getText.ClearPans() 您可以使用Xml通过Java IndexOutOfBoundsException设置盘(10…;10)末端超过长度3,java,android,xml,Java,Android,Xml,有时,此错误“IndexOutOfBoundsException设置范围(10…10)超出长度3” 在editText.setSelection()中发生,即当我想重新关注editText.getText.toString().length()中的editText上一个值时 例如: editText.setSelection(editText.getText.toString().length()) 你知道为什么会这样吗?如何解决这个问题???在编辑文本时使用ClearPans() 例子: ed
'较长的代码片段可能会有所帮助