I have created listview by using arrayadpter i add arraryadapter to listview contaning string array but i m unable to add icon to eatch listitem help me out...
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Here is a free excerpt from one of my books that discusses the techniques involved. In a nutshell, you will need to extend your Adapter
class (e.g., ArrayAdapter
, CursorAdapter
) and take direct control over the creation of rows, so you can apply your desired business logic.