On Sat, May 9, 2009 at 10:39 PM, Paranoia <zheny...@gmail.com> 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. > 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. > 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. -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---