'A(black)A(black)A(black)B(red)B(red)B(red)'
* There is a text 'AAABBB' in EditText widget.
* Black and red mean the color of letter.

Select 'AB' (I mean third and fourth characters) and copy 'AB'

Paste copied text into string AAAB(position for pasting)BB

I expect AAAB(red)A(black)BBB, but the result doesn't like my
expectation.
EditText shows me, AAAB(red)A(red)BBB

 I've tried to write some code to solve this problem with setSpan()
method and
Spanned.SPAN_EXCLUSIVE_INCLUSIVE and so on... for these days, they
doesn't works.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to