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
-~----------~----~----~----~------~----~------~--~---