Android Question AutoCompleteEditText question

Discussion in 'Android Questions' started by Alberto Michelis, Jun 16, 2015.

  1. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    Is there any way to test that what the user type is one of the suggested items?
    You start typing and it shows the possible items but if you continue typing then you can choose a value not in the item list.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Put all the possible values in a Map and then you can quickly check if the Map contains the text (as a key).
     
    lemonisdead likes this.
  3. Peter Simpson

    Peter Simpson Well-Known Member Licensed User

Loading...