Im trying to hide a soft keyboard in android device by having the entry focused by default i.e., when the page is loaded entry should be focused automatically and keyboard should be hidden
Can anyone please help me on this.
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
this.Control.RequestFocus();
InputMethodManager imm = InputMethodManager.FromContext(CrossCurrentActivity.Current.Activity.ApplicationContext);
imm.HideSoftInputFromWindow(CrossCurrentActivity.Current.Activity.Window.DecorView.WindowToken, HideSoftInputFlags.None);
}