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 Expert Licensed User

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice