Have been struggling with the same problem. Solved by a combination of
methods suggested above. I set the input type for my editor to NULL
only for the time of processing the touch event. Like this -
MyEditor.setOnTouchListener(new OnTouchListener(){
@Override
public boolean onTouch(View v, MotionEvent event) {
int inType = MyEditor.getInputType(); // backup the input type
MyEditor.setInputType(InputType.TYPE_NULL); // disable soft
input
MyEditor.onTouchEvent(event); // call native handler
MyEditor.setInputType(inType); // restore input type
return true; // consume touch even
}
});
Works like a charm.
On Jun 2, 3:47 pm, Alex B <[email protected]> wrote:
> I'm still trying to figure out how to suppress the soft keyboard from
> showing because I have my own custom buttons for input. I have several
> EditText input fields, and all of them get filled by the custom on-
> screen buttons. I don't want the soft keyboard to show up at all.
> Could someone please help?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---