Hi.. Thanks this link is really useful for me..But i am facing 1 problem i tried in this way..
TextView text; Spannable str = (Spannable) text.getText(); str.setSpan(new BackgroundColorSpan(0xFFFFFF00), 3, 12, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); its working fine.But i dont want to set start point and end point as (3,12).I want to get the length when i click mouse on particular position in text. I used event.getx() and getY(),But this will return screen cursor position only.How can i get length dyanmically ? On Nov 24, 8:25 pm, "Dexter's Brain" <[email protected]> wrote: > You can use the Spannable class to style your texts from EditText. > > http://developer.android.com/guide/appendix/faq/commontasks.html#sele... > > Thanks, > Dexter > > http://tech-droid.blogspot.com -- 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

