public void ShowHexKeyboard(View v) { var bottomUp = AnimationUtils.LoadAnimation(this, Resource.Xml.slideup); KeyboardView keyboardView = (KeyboardView)FindViewById <KeyboardView>(Resource.Id.keyboardview); keyboardView.StartAnimation(bottomUp); keyboardView.Visibility = ViewStates.Visible; keyboardView.Enabled = true; if (v != null) { ((InputMethodManager)GetSystemService(InputMethodService)).HideSoftInputFromWindow(v.WindowToken, 0); } }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); _keyBoard = new Keyboard(this, Resource.Xml.keyboard); _keyboardView = FindViewById <KeyboardView>(Resource.Id.keyboard_view); _keyboardView.Keyboard = _keyBoard; _keyboardView.OnKeyboardActionListener = new MyKeyboardListener(this); _targetView = FindViewById <EditText>(Resource.Id.target); _targetView.Touch += (sender, args) => { var bottomUp = AnimationUtils.LoadAnimation(this, Resource.Animation.slide_up); _keyboardView.StartAnimation(bottomUp); _keyboardView.Visibility = ViewStates.Visible; args.Handled = true; }; }