具有图像和两项列表视图?视图、两项、图像、列表

由网友(€没那么多情绪)分享简介:你好,我想在列表中显示view.i两项知道,我们可以用下面的做到这一点。 的ArrayList<地图<字符串,字符串>> ,但我需要表现出与此两项一张图片。下面是我想要一个形象。Hi i am trying to show two item in list view.i know we ca...

你好,我想在列表中显示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

阅读全文

相关推荐

最新文章