Anyone know how to suppress the soft keyboard?

On May 29, 8:59 am, Alex B <[email protected]> wrote:
> Actually, there's still a problem.
>
> I only want suppress the softkeyboardfrom showing up -- because I
> have a custom on-screen keypad. Consuming the touch event suppresses
> the softkeyboard, but it also holds the focus on the text field,
> making it impossible to touch another text field. I have two text
> fields, and I want to suppress thekeyboardon both, but of course
> both fields must still be touchable.
>
> Any idea how to suppress the softkeyboard, but not have the above
> mentioned negative side effect?
>
> On May 28, 11:19 pm, Alex B <[email protected]> wrote:
>
> > Indeed, Sujay, thank you!
>
> > This will disable (suppress) the softkeyboard:
>
> > editText_input_field.setOnTouchListener(otl);
>
> > private OnTouchListener otl = new OnTouchListener()
> > {
> >         public boolean onTouch (View v, MotionEvent event)
> >         {
> >                 return true; // the listener has consumed the event
> >         }
>
> > };
--~--~---------~--~----~------------~-------~--~----~
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