You need to change the code to use the public SDK (calling the View functions to get/set the scroll position etc).
2009/5/12 onlinemad <online...@gmail.com> > > I have the same problem. > > I add field mScrollX in CandidateView manually > > it can build, but composing function doesn't work. > > does anyone have the same problem?? > > On 5月11日, 下午10時32分, "e21u...@gmail.com" <e21u...@gmail.com> wrote: > > Here is list of problems with android.jar that makes it impossible to > > compile LatinIME as project in Eclipse with 1.5_r1 SDK: > > Description Resource Path Location Type > > com.android.internal.R cannot be resolved CandidateView.java > > LatinIME_15r1/src/com/android/inputmethod/latin line 116 Java > Problem > > com.android.internal.R cannot be resolved LatinIME.java > LatinIME_15r1/ > > src/com/android/inputmethod/latin line 1019 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 142 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 142 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 153 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 154 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 155 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 157 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 158 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 160 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 170 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 213 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 264 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 270 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 271 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 272 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 273 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 277 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 278 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 279 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 294 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 308 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 309 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 322 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 324 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 337 Java Problem > > mScrollX cannot be resolved CandidateView.java > LatinIME_15r1/src/com/ > > android/inputmethod/latin line 455 Java Problem > > The constructor Vibrator() is not visible LatinIME.java > LatinIME_15r1/ > > src/com/android/inputmethod/latin line 963 Java Problem > > The method getInstance(LatinIME) is undefined for the type > > InputMethodManager LatinIME.java LatinIME_15r1/src/com/android/ > > inputmethod/latin line 1031 Java Problem > > > > i think they are: > > * access to hidden com.android.internal.R.string.inputMethod > > CharSequence itemInputMethod = getString > > (com.android.internal.R.string.inputMethod); > > * use mScrollX that is only in git not in SDK - CandidateView extends > > View and uses mScrollX > > it is declared in android.view.View > > /** > > * The offset, in pixels, by which the content of this view is > > scrolled > > * horizontally. > > * {...@hide} > > */ > > @ViewDebug.ExportedProperty > > protected int mScrollX; > > * no acccess to Vibrator constructor (hmm) > > mVibrator = new Vibrator(); > > * andnot existing InputMethodManager.getInstance > > (LatinIME.this).showInputMethodPicker(); > > on git: > > /** > > * Retrieve the global InputMethodManager instance, creating it if > > it > > * doesn't already exist. > > * @hide > > */ > > static public InputMethodManager getInstance(Context context) { > > > > i tried different brancses and tags but no luck ... > > git clone git:// > android.git.kernel.org/platform/packages/inputmethods/LatinIME.git > > cd LatinIME > > git checkout master > > git checkout android-sdk-1.5_r1 > > git checkout android-sdk-1.5-pre > > ... > > > > help?! > > > -- 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-framework" group. To post to this group, send email to android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---