Actually having the onClickListener for the textView try and do showSoftInput tosses a few extra references to onCheckIsTextEditor, but still nothing on onCreateInputConnection.
On Sep 24, 7:09 pm, Adam Vollmer <[email protected]> wrote: > I'm having the exact same problem. I've implemented a class that > subclasses TextView, implements onCheckIsTextEditor and > onCreateInputConnetion, and has an android:inputType. Unfortunately > neither method is ever called for me. I'm calling showSoftInput on > this view, and I'm getting absolutely nothing in the way of error > logging information. I know that this works as if I point > showSoftInput to an EditText on the same layout the keyboard will pop > up. > > Clearly, other people have gotten this to work, so it's not > impossible, but I'd love to know what exactly I'm missing here. > > On Aug 26, 3:15 pm, Dhanesh D Pai <[email protected]> wrote: > > > Hi, > > > I am trying to override "*onCreateInputConnection" *inside a class which > > extends View. But I observe that "*onCreateInputConnection" * is not never > > called and so is "onCheckIsTextEditor"** > > > �...@override > > public boolean onCheckIsTextEditor() { return true; } > > > @Override > > public InputConnection onCreateInputConnection(EditorInfo outAttrs) { > > //super.onCreateInputConnection(outAttrs); > > outAttrs.imeOptions |= EditorInfo.IME_FLAG_NO_EXTRACT_UI | > > EditorInfo.IME_ACTION_NONE; > > outAttrs.actionLabel = null; > > outAttrs.hintText = "Insert the test text"; > > outAttrs.initialCapsMode = 0; > > outAttrs.initialSelEnd = outAttrs.initialSelStart = -1; > > outAttrs.label = "Test text"; > > return new BaseInputConnection(this, false); > > } > > > the basic aim being to get the "enter" key from the softinput for a > > SurfaceView > > > TIA > > Dhanesh --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

