Hi Thomas,

I think you can do this on the basis of parameters of onSizeChanged.

void  onSizeChanged  (int w, int h, int oldw, int oldh)

Parameters
w       Current width of this view.
h       Current height of this view.
oldw    Old width of this view.
oldh    Old height of this view.


Thanks,
AJ

On Sep 30, 3:37 am, Thomas <[email protected]> wrote:
> Hi
>
> Thanks all for your answers.
>
> I put a code in the onSizeChanged(), but when this method is called
> always when the view resizes. I'd like to know how I can discover
> using this method if the virtualkeyboardis opened or not.
>
> I saw the InputMethodManager, but I didn't find how to use this class
> for my purpose.
>
> Anyone can help me?
>
> Thanks again
>
> On Tue, Sep 29, 2009 at 7:51 AM, AJ <[email protected]> wrote:
>
> > If your class is extending from an Activity then I don't know how to
> > get that event.
>
> > But if your app has some class which is extending from View, then
> > onSizeChanged() gets the control when ever your view gets shortened.
>
> > Like:- WebView get in Browser app
>
> > Thanks,
> > AJ
>
> > On Sep 29, 2:34 pm, Mark Murphy <[email protected]> wrote:
> >> Gulfam wrote:
> >> >    I also want totakesome actions onsoftkeyboardappear and
> >> > disappear.
> >> > any one can help us how we can get appear and disappear events.
>
> >> There are no such events, short of detecting a window resize (and, off
> >> the top of my head, I don't know how to do that).
>
> >> --
> >> Mark Murphy (a Commons 
> >> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> >> Android App Developer Books:http://commonsware.com/books.html
>
>
--~--~---------~--~----~------------~-------~--~----~
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