please see my comments On May 11, 4:57 am, Dianne Hackborn <[email protected]> wrote: > On Sat, May 9, 2009 at 10:39 PM, Paranoia <[email protected]> wrote: > > i want to draw the compoing text and the cursor by myself. but i do > > not find how to implement this. > > You can't. You can deliver the composing text with style information, > however.
does android team have plan to support cursor control? > > > i also want to set the cursor position into the composing text when i > > call setComposingText. seems it's impossible. > > Yes because the application may do filtering or other modification of the > text. > can imf get the modification via text watcher or span watcher and reposition the cursor? > > And i found an issue that. setComposingText is also insert the > > composing text to a fixed position. the following code does not work. > > > InputConnection ic = getCurrentInputConnection(); > > ic.setSelection(xxx, yyy); > > ic.setComposingText(composingtext, 1); > > > Any one can tell me why? Thanks! > > The composing text is placed at the current cursor location. I'd need to > have a full sample code to know what you are trying to do and what is not > happening how you want. > i just want to set the cursor in advanced, then insert the composing text... then i move the cursor out of the composing text, the insertion point of the composing text is changed. you can see it's moved... > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

