I have a button focused in a view. Also I have a overridden method onKeyDown().
Now when button is clicked via remote, onClickListener gets invoked but why the onKeyDown() in not getting invoked.
I have a button focused in a view. Also I have a overridden method onKeyDown().
Now when button is clicked via remote, onClickListener gets invoked but why the onKeyDown() in not getting invoked.
Copyright © 2021 Jogjafile Inc.
onKeyDown() and onKeyUp() both events are more specially for Hardware button. Although these events are complitable with soft button as well. These both events not supports focus change.
To get focus change event you can use OnFocusChangeListener() this will be best practice.