On the Samsung tablet, we have the following keyboard:

When a click has occurred in the lower right arrow, the fragment changes in the viewing pager. I want to intercept this event or remove arrows from the keyboard. Is it possible?
I tried to intercept keyevent using the onKeyUp and onKeyDown methods, but it does not work:
if (event.getKeyCode() == KeyEvent.KEYCODE_DPAD_RIGHT || event.getKeyCode() == KeyEvent.KEYCODE_DPAD_LEFT) {
return true;
}
My problem is the same as here
Berug source
share