Thanks for your quick and kind help. I hardcode inputExtractEditText to a hex value the same as the value given in com.android.internal.R.id.inputExtractEditText. It is just a hack, so that mExtractEditText is created from my XML; otherwise it is always created from com.android.internal.R.id.inputExtractEditText in InputMethodService. And my customized ExtractEditText will never by shown.
It is great news that the furture extract mode will be pretty, so that we can customize our extract view freely. Do you have a rough schedule when the nex IMF release will be available? Nice weekend. On 1月9日, 上午11时00分, "Dianne Hackborn" <[email protected]> wrote: > On Thu, Jan 8, 2009 at 6:59 PM, Dianne Hackborn <[email protected]> wrote: > > > And, refer to your comment on onCreateExtractTextView(), I set > >> R.id.inputExtractEditText to the same id 0x01020025; and it does work. > >> However, it is just a workaround; I need change code whenever the id > >> of inputExtractEditText is changed in SDK. > > > I'm not sure I understand -- R.id.inputExtractEditText should be a public > > resource and so (once cupcake is FRC) not change. > > Oh wait, are you saying you are hard-coding that hex value? If so, why? > You can reference it symbolically in both XML and code. > > -- > 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. 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-framework" 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-framework?hl=en -~----------~----~----~----~------~----~------~--~---
