Hi alex i think u could solve ur problem by using the onTouchListener rather.... since it returns a boolean stating whether u handled the event or not.... if u want to show the keyboard return false... else return true... i'm not very sure that this is wat u want... but u can give it a try....
On Fri, May 29, 2009 at 10:43 AM, Alex B <[email protected]> wrote: > > Hi Dianne, > > How to "eat" it? I too want to prevent the soft keyboard from showing > when the EditText is touched. > > private OnClickListener ocl = new OnClickListener() > { > public void onClick(View v) > { > // how to eat the event? > } > }; > > > On May 13, 9:36 am, Dianne Hackborn <[email protected]> wrote: > > That means that your text field is no longer really an editor (though it > may > > have some stuff lying around that make it kind-of work). If you want a > tap > > to not show the soft keyboard, just capture the click event on the text > view > > and eat it. > > > > > > -- Regards, Sujay Mitch Hedberg<http://www.brainyquote.com/quotes/authors/m/mitch_hedberg.html> - "My fake plants died because I did not pretend to water them." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

