创建动态ListView

时间:2015-02-12 07:13:34

标签: android

我想创建动态ListView作为响应json,在json对象有多个数组我想创建每个数组一个listview。

示例json:

{
  "familymember": {
    "f1": [
      {
        "name": "Arun",
        "age":"21"
      },
      {

        "name": "ram",
        "age":"25"
      }
    ],
    "f2": [
      {
         "name": "raj",
         "age":"25"     
     },
      {
         "name": "john",
        "age":"21"
      }
    ]
  }
}

说明:

Now "familymember" json object has two array variable "f1" and "f2".
i want to create f1 as separate listview and f2 as listview dynamically.

thanks... 

感谢...

0 个答案:

没有答案