Let say for some reason I have gotten a code where the main activity will present a dialog to allow the user to confirm exit or just cancel, I would like to implement that the user can use the arrow key to move left and right or rotate back to the two buttons ( cancel or ok ), how do I do it in code ?
I found many solutions using the XML method where the view will have the android:nextFocusRight="@+id/button2". But how could this be done programmatically ?
Thank you very much.
I found many solutions using the XML method where the view will have the android:nextFocusRight="@+id/button2". But how could this be done programmatically ?
Thank you very much.