I suppose I should have qualified that a little more, I'm a tad more
experienced than just needing the Button documentation.

I've been attempting to speed up the dismissal of the soft keyboard
when a Dialog I have is closed. I have a previous post, here:
http://groups.google.com/group/android-developers/browse_thread/thread/eb90583c1ba79f73

After playing with the idea a bit more, this seems to work to dismiss
the keyboard consistently during the Dialog's onClick(), imm being the
InputMethodService, and password is the AlertDialog instance.

imm.hideSoftInputFromWindow(password.getWindow().getCurrentFocus().getWindowToken(),
0);

The Dialog has a single EditText view which has focus right up until
the Dialog's onClick fires, when it definitely loses focus based on
tests I've ran. The question then was... what view then does have
focus? Whatever is returned by password.getWindow().getCurrentFocus()
seems to be the answer, but it's none of the views created by
myself... which then leads to the question... are those Buttons Views
that can be returned (other than by getWindow().getCurrentFocus() if
it is really returning that View)?


On Feb 8, 9:31 am, kernelpanic <[email protected]> wrote:
> pretty straightforward answer then - from the docs here 
> -http://developer.android.com/reference/android/widget/Button.html
>
> java.lang.Object
>    ↳ android.view.View
>      ↳ android.widget.TextView
>        ↳ android.widget.Button
>
> On Feb 8, 11:07 am, Jeremiah Sellars <[email protected]> wrote:
>
> > Pretty straightforward question, really.
>
> > Thanks everyone,
> > Jeremiah

-- 
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