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
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.
oldwOld width of this view.
oldhOld height of this view.
Thanks,
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 virtual keyboard is opened or not.
I saw the InputMethodManager, but I didn't find how to use this class
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 Mur
Gulfam wrote:
>I also want to take some actions on soft keyboard appear 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
check the following link
http://developer.android.com/reference/android/view/View.html#onSizeChanged%28int,%20int,%20int,%20int%29
hope this helps you.
Thanks,
AJ
On Sep 29, 10:34 am, Gulfam wrote:
> Hi All,
>
> I also want to take some actions on soft keyboard appear and
> disappear.
> an
Hi All,
I also want to take some actions on soft keyboard appear and
disappear.
any one can help us how we can get appear and disappear events.
Gulfam
On Sep 29, 12:32 am, Thomas wrote:
> Hi All,
>
> Does Nobody know that?
>
> thanks again
>
> Tomás
>
> On Fri, Sep 25, 2009 at 11:07 AM,
Hi All,
Does Nobody know that?
thanks again
Tomás
On Fri, Sep 25, 2009 at 11:07 AM, Thomas wrote:
> Hi All,
>
> I'd like to take an action always when soft keyboard is shown or
> hidden. In my activity there is a menu that I want to hide when soft
> keyboard is launched and this menu needs to
8 matches
Mail list logo