Android ListView帮助 [英] Android ListView help

查看:70
本文介绍了Android ListView帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,

我是Android开发和java的新手,所以我有一些问题了解这是如何工作所以可以做一些建议。



我遵循本教程: http://windrealm.org/tutorials/android/ android-listview.php [ ^ ]



我想要的是一个列表视图,每行并排显示2个textView,一个用于问题,另一个用于值,两者都将从数据库表并添加到listview。我上面找到的教程有效,但每行只显示一个字符串,因为我希望显示和分配多个值,例如ID,问题和答案。



我可以就我想要做的事情得到一些建议吗?我不知道我想要搜索的关键字,以便自己找到解决方案。

Hey guys,
I''m new to Android development and java so I''m having some issues understanding how this works so could do with some advice.

Im following this tutorial: http://windrealm.org/tutorials/android/android-listview.php[^]

What I want to have is a listview which displays 2 textViews side by side per row, one for a Question and another for a value, both would be loaded from a database table and added to the listview. The tutorial I found above works but it only displays one string per row where as I want multiple values displayed and assigned such as the ID, Question and Answer.

Can I get some advise on what I''m trying to do? I don''t know the keywords I am trying to search for to find the solution myself.

推荐答案

然后这些可以帮到你..

http:// android-codes-examples。 blogspot.com/2011/09/using-sqlite-to-populate-listview-in.html [ ^ ]

http://kahdev.wordpress.com/2010/09/27/android-using-the-sqlite- database-with-listview / [ ^ ]

http://www.hdelossantos.com/2010/01/07/using -a-sqlite-database-in-android / [ ^ ]
Then these may help you..
http://android-codes-examples.blogspot.com/2011/09/using-sqlite-to-populate-listview-in.html[^]
http://kahdev.wordpress.com/2010/09/27/android-using-the-sqlite-database-with-listview/[^]
http://www.hdelossantos.com/2010/01/07/using-a-sqlite-database-in-android/[^]


这篇关于Android ListView帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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