EditText.setSelection(giftName.length());
java.lang.IndexOutOfBoundsException: setSpan (7 ... 7) ends beyond length 0后来发现在布局文件中设置了 EditText的maxLength属性为6,所以有此错误!在此记录!
EditText.setSelection(giftName.length());
java.lang.IndexOutOfBoundsException: setSpan (7 ... 7) ends beyond length 0后来发现在布局文件中设置了 EditText的maxLength属性为6,所以有此错误!在此记录!