I replied previously, but it looks like I hit "reply to author". The
missing bit of info is that the view wasn't focusable. Make sure the
view is focusable (in touch and normally) and you should be set.

On Sep 24, 7:16 pm, Adam Vollmer <[email protected]> wrote:
> Actually having the onClickListener for the textView try and do
> showSoftInput tosses a few extra references to onCheckIsTextEditor,
> but still nothing ononCreateInputConnection.
>
> 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 InputConnectiononCreateInputConnection(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
-~----------~----~----~----~------~----~------~--~---

Reply via email to