Closed trentmilton closed 9 years ago
I would up this suggestion to support for physical buttons. Dpad, navigation trough volume buttons(configurable in settings) and ability to assign any button to any function, similar to what perfect viewer has. In perfect viewer you can first press a button you want to assign a function to, then you can choose what will happen.
I guess I might give the volume buttons a try, make it a setting with it off by default (I personally wouldn't want them active for myself). As for other buttons, I have no devices with any physical buttons other then volume and power. Found a sample online, so it should be easy to implement, just call the next and previous functions. So up should go Prev and down goes to next? :)
@Override public boolean dispatchKeyEvent(KeyEvent event) { int keyCode = event.getKeyCode(); switch (keyCode) { case KeyEvent.KEYCODE_VOLUME_UP: case KeyEvent.KEYCODE_VOLUME_DOWN: return true; default: return super.dispatchKeyEvent(event); } }
I'd say up is previous and down is next.
FYI I use a galaxy nexus 7" for viewing so the buttons would be absolutely fantastic.
I just published a version that has the feature. Enjoy
Ability to navigate via volume buttons instead of swipe / tap left or right