JSON object to listView

后端 未结 3 498
花落未央
花落未央 2020-12-07 03:20

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.

I che

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 04:10

    For simple example no need of custom list view. you can work with simple list view.

    • Parse the JSON data retrieve the data
    • store them in a list and pass that list as an argument to the adapter
    • set the adapter to the list view.

提交回复
热议问题