arent u able to use setfocus to give ur keypad the focus??? On Mon, Jun 1, 2009 at 8:03 PM, Alex B <alexba...@gmail.com> wrote:
> > Anyone know how to suppress the soft keyboard? > > > On May 29, 8:59 am, Alex B <alexba...@gmail.com> 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 <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 > > > } > > > > > }; > > > -- Regards, Sujay George Bernard Shaw<http://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html> - "A government that robs Peter to pay Paul can always depend on the support of Paul." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---