androidsearchfull-text-searchadapterlistactivity

How to set Custom Adapter in ListActivity?


I am trying to implement a search dialog in which I am trying to search from a given API, by making OkHttp call. But in ListActivity, I am only able to use the default adapters. Is there any way to use the custom adapter?


Solution

  • Is there any way to use the custom adapter?

    Create custom Adapter by extending BaseAdapter and pass it to setListAdapter.