列表视图和列表适配器来显示JSON [英] List view and list adapters for displaying json
问题描述
我想显示从JSON在列表视图中的文本。我得到了帮助检索从下面的JSON文本... <一href="http://www.josecgomez.com/2010/04/30/android-accessing-restfull-web-services-using-json/comment-page-1/#comment-498">http://www.josecgomez.com/2010/04/30/android-accessing-restfull-web-services-using-json/comment-page-1/#comment-498....
I am trying to display the text from json in a list view. I got help for retrieving the json text from the following... http://www.josecgomez.com/2010/04/30/android-accessing-restfull-web-services-using-json/comment-page-1/#comment-498....
但我的问题是,我无法弄清楚如何显示它们在列表视图中。我也只想得到一些从URL文本(例如,alerttext和日期)的。谁能帮我在宣布名单适配器和列表视图,以显示我想要的方式中的数据... Plzzzz ...
But my problem is that i cant figure out how to display them in list view. I also want to get only some of the text from url(for example, alerttext and date). Can anyone help me in declaring the list adapter and list view in order to display the data in the way i want... Plzzzz...
推荐答案
我顺便在这里做...
I got the way to do it here...
的http://www.josecgomez.com/2010/05/03/android-putting-custom-objects-in-listview/
由于圣何塞用于解决该问题。希望这篇文章可以帮助一些其他的业余的Android开发人员喜欢我......荣誉给Android开发团队...: - )
Thanks to Jose for solving the problem. Hope this post will help some other amateur android developers like me... Kudos to Android development team...:-)
这篇关于列表视图和列表适配器来显示JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!