attached is how things work for me.
hid and ime keyboards follow a different logic (as you have seen).
having more than 1 edittext is a problem. fortunately, it is not necessary.
both buttons and edittext views can receive focus. when you unset their
focusability, they do not behave in the same way. fortunately, in your
case, we can unset the buttons' focusability. that is what we do.
the barcode is scanned and decoded and output to the edittext view. after
that, there is no reason to switch focus. we simply wait for the user to tap
a quantiy button or a done button. if a quantity button is tapped, its value
appears in a label, not an edittext. a second edittext serves no purpose, since
there is no softkeyboard for input. the buttons serve that purpose, and they
don't need an edittext to display the quantity selected.
once you turn off the buttons' focusability, there is no "next" focusing -
random or algorithmic.