具有图像和两项列表视图? [英] List view with image and two item?

查看:113
本文介绍了具有图像和两项列表视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我想在列表中显示view.i两项知道,我们可以用下面的做到这一点。 的ArrayList<地图<字符串,字符串>> ,但我需要表现出与此两项一张图片
。 下面是我想要一个形象。

Hi i am trying to show two item in list view.i know we can do this with the following. ArrayList<Map<String, String>> but i need to show one image along with this two item.
Here is a image which I want.

我创建一个ImageView的和两个文本view.i xml文件不知道如何做到这一点。

I create xml file with one imageview and two text view.i don't understand how to do this.

推荐答案

您应该实现类 ArrayAdapter 并创建自己的 ListAdapter

You should implement the class ArrayAdapter and create your own ListAdapter.

请参阅: http://www.vogella.com/articles/AndroidListView/article。 HTML

这篇关于具有图像和两项列表视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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