Skip to content Skip to sidebar Skip to footer

Android Custom Autocompletetextview With Custom Adapter

Basically, I wish to write something in the edittext, then a web http request will be called that returns a JSONObject which contains a JSON array, which contain the values somewhe

Solution 1:

in your PersonAdapter override getFilter() method returning your custom inner Filter where you have to implement its two methods: performFiltering() and publishResults(), performFiltering is run in the worker thread and here you call your web request, in publishResults just call clear() and add() the items


Post a Comment for "Android Custom Autocompletetextview With Custom Adapter"