I want to show an error message if no item is selected from the AutoCompleteTextView. Here is my XML Java Code It is not working What am I doing wrong? Answer If I set an error on customerSpinnerLayout then it works Everything is the same as above you just have to change the condition It works for me. Best of
Tag: autocompletetextview
How to fill AutoCompleteTextView in Android with an API call?
I want to try to get a list of food items from an API and update the AutoCompleteTextView based on this. I’ve tried following the answer here but to no avail: https://stackoverflow.com/a/36799955/7429535 This is my code so far: You can see an example API response here: https://api.edamam.com/api/food-database/parser?ingr=red&app_id=8ff4be18&app_key=f2bf020e6d3cf1a9989c2a2163fb720f Currently, this code IS inputting the correct food names into the apiFoods ArrayList