Actually, there's still a problem.

I only want suppress the soft keyboard from showing up -- because I
have a custom on-screen keypad. Consuming the touch event suppresses
the soft keyboard, 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 the keyboard on both, but of course
both fields must still be touchable.

Any idea how to suppress the soft keyboard, but not have the above
mentioned negative side effect?



On May 28, 11:19 pm, Alex B <alexba...@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to