Hi AJ,

this solution is not possible to me, because, I'd like to hide a menu
when the soft keyboard appears. When I hide the keyboard, the View
changes the size, so comparing the height and old height, it will
think the soft keyboard disappeared.

Thanks for you help

thomas

On Wed, Sep 30, 2009 at 3:51 AM, AJ <ajeet.invinci...@gmail.com> wrote:
>
> 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 <perd...@gmail.com> 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 <ajeet.invinci...@gmail.com> 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 <mmur...@commonsware.com> 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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to