Reputation: 425
App adds color to text, that gets from EditText
, adds color and using next code puts text with color back in edittext:
edittext.setText(spannableStringBuilder, TextView.BufferType.EDITABLE);
But after this, the cursor always resets to position 0. If I don't add any text programmatically, it works fine. So, how can I set my cursor position to fit the last char?
Upvotes: 1
Views: 411