bool OnTouch(IButton? button, AView? v, MotionEvent? e) { switch (e?.ActionMasked) { case MotionEventActions.Down: button?.Pressed(); break; case MotionEventActions.Up: button?.Released(); break; } return false; }
public void OnClick(IButton?button, AView?v) { button?.Clicked(); }