示例#1
0
 public void Show(bool show, SoftKeyboardType type)
 {
     if (show)
     {
         Shown?.Invoke();
     }
     else
     {
         Hidden?.Invoke();
     }
 }
示例#2
0
 public void ShowSoftKeyboard(bool show, SoftKeyboardType type)
 {
     if (show != textView.IsFirstResponder)
     {
         if (show)
         {
             textView.KeyboardType = type == SoftKeyboardType.Default ? UIKeyboardType.Default : UIKeyboardType.NumberPad;
             textView.BecomeFirstResponder();
         }
         else
         {
             textView.ResignFirstResponder();
         }
     }
 }
示例#3
0
 public void Show(bool show, SoftKeyboardType type)
 {
     gameView.SoftKeyboardType = type;
     if (show)
     {
         gameView.Focusable            = true;
         gameView.FocusableInTouchMode = true;
         gameView.RequestFocus();
         imm.ShowSoftInput(gameView, ShowFlags.Forced);
     }
     else
     {
         gameView.Focusable            = false;
         gameView.FocusableInTouchMode = false;
         imm.HideSoftInputFromWindow(gameView.WindowToken, 0);
         // HACK: This will reset UI flags back to values defined in OnWindowFocusChanged
         ActivityDelegate.Instance.Activity?.OnWindowFocusChanged(true);
     }
 }
示例#4
0
 public void Show(bool show, SoftKeyboardType type)
 {
     controller.ShowSoftKeyboard(show, type);
 }