如何添加图标/图像的ListView列表项 [英] How to add icon/image to listitem of ListView

查看:173
本文介绍了如何添加图标/图像的ListView列表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以我arrayadpter添加到arraryadapter的ListView contaning字符串数组列表视图中创建,但读音字无法添加图标eatch列表项
帮我...

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...

推荐答案

下面是一个免费摘录从讨论所涉及的技术,我的书之一。简而言之,你将需要扩展适配器类(例如, ArrayAdapter 的CursorAdapter ),并采取直接控制创建行,这样你就可以应用所需的业务逻辑。

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.

这篇关于如何添加图标/图像的ListView列表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆