http://stackoverflow.com/questions/1109022/how-to-close-hide-the-android-soft-keyboard

On 2 Jul., 17:58, DonB <[email protected]> wrote:
> Did anyone get this resolved? I have the same issue.
>
> Don
>
> On Jun 6, 9:29 am, Bram <[email protected]> wrote:
>
> > Sorry, no anwser. I have the same question. Did you get this sorted
> > out? In my use-case I clear the focus from an EditText and thus want
> > the keyboard gone too..
>
> > myPageEditText.addTextChangedListener(new TextWatcher() {
>
> >         public void afterTextChanged(Editable s) {
> >                 if(myPageEditText.getText().length() == 3){
> >                         myPageEditText.clearFocus();
>
> >                         // How to close thesoftkeyboard?
> >                 }
> >         }
>
> >         public void beforeTextChanged(CharSequence s, int start, int count,
> > int after) {
> >         }
>
> >         public void onTextChanged(CharSequence s, int start, int before, int
> > count) {
> >         }
>
> > });
>
> > regards,
> > Bram
>
>
--~--~---------~--~----~------------~-------~--~----~
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