如何在ListActivity中设置自定义适配器?
How to set Custom Adapter in ListActivity?
我正在尝试通过调用 OkHttp 实现一个搜索对话框,在该对话框中我试图从给定的 API 进行搜索。但是在 ListActivity 中,我只能使用默认适配器。有什么方法可以使用自定义适配器吗?
Is there any way to use the custom adapter?
通过扩展 BaseAdapter
创建自定义适配器并将其传递给 setListAdapter
。
我正在尝试通过调用 OkHttp 实现一个搜索对话框,在该对话框中我试图从给定的 API 进行搜索。但是在 ListActivity 中,我只能使用默认适配器。有什么方法可以使用自定义适配器吗?
Is there any way to use the custom adapter?
通过扩展 BaseAdapter
创建自定义适配器并将其传递给 setListAdapter
。