Usually in desktop / web applications, we have a código
field where something is entered, and next to another field that shows the description of this "something" after searching the database.
This operation to fetch the related item in the database usually occurs when the codigo
text field loses its focus, after a tab for example. Often there is also a search button if the user does not know the code. So far so good.
My question is related to mobile devices, because using this approach I mentioned earlier is really strange. Besides the user having to click on something else for the EditText
to lose the focus, it is not intuitive and clear to him that is how it works, outside that the keyboard will be open being able to cover the description field, etc.
I thought of opening a Dialog
when the codigo
field receives the focus for the user to enter the number and give OK, but what if he does not know the code? Or maybe a Dialog
with the list of items or even another activity
, but if I have more than 1000 items it complicates. Does anyone have a better idea or tip?
Ex. that I would not like to use: