In whatsapp chat when we press back button keyboard gets hide instead of
loading previous activity..
I want to hide keyboard on back press?
I think in normal case when you are focused to an Edit Text, i.e, when keyboard is show., when we press back button, the Edit Text will loose focus and it will lead to hiding of keyboard.
There is no need of a special event to control the keyboard.
Check it on a device other than an emulator.
To control Back button press make use of :
public override void OnBackPressed ()
Refer : Android.App.Activity.OnBackPressed Method
You can have a look into this https://xamarinexperience.blogspot.com
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies