JSON对象的ListView [英] JSON object to listView
问题描述
我是新手到Android,我希望能够动态的JSON数据实现我的android ListView中,我只需要在JSON文件这是dealname和对象折扣。
i am newbie to android, I wanted to implement dynamically JSON data to my android listView, I have only to objects in JSON file this are dealname and discount.
我检查了所有的问题和教程,但是当我实施的这些codeS中的应用,没有一个正在运行。我只是想问问,要实现这样的JSON数据,我应该需要分析数据,并转换成字符串数组那么简单列表视图工作,或者我需要实现自定义列表视图? PLZ您的建议将有助于解决这个任务。
I checked all questions and tutorials but when i implemented those codes in application, neither one is running. I just wanted to ask, to implement such JSON data, should i need to parse data and convert into String array so simple listview work, or i need to implement custom listview? Plz your suggestions will help to solve this assignment..
在此先感谢。
推荐答案
看看这两个教程,在这些JSON对象都显示在自定义的ListView,我想这是你需要的,
Look at these two tutorials, In these Json object are displayed in Custom ListView, I think this is what you needed,
<一个href="http://stackoverflow.com/questions/6277154/populate-listview-from-json/8113337#8113337">Populate从JSON 列表视图
这篇关于JSON对象的ListView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!