How to use dynamic textview from json in android

I am using post method to get this array and number of columns will increase based on every post. "floor": [ {"no_of_bedroom":"1.5","floor_plotsize_start":"692.00","floor_price_start":"4356832.00"}, {"no_of_bedroom":"2.0","floor_plotsize_start":"1000.00","floor_price_start":"6296000.00"}, {"no_of_bedroom":"2.0","floor_plotsize_start":"1029.00","floor_price_start":"6478584.00"}, {"no_of_bedroom":"2.0","floor_plotsize_start":"1132.00","floor_price_start":"7127072.00"}, {"no_of_bedroom":"3.0","floor_plotsize_start":"1390.00","floor_price_start":"8751440.00"}, {"no_of_bedroom":"3.0","floor_plotsize_start":"4901.00","floor_price_start":"40801320.00"} ] How to display by using dynamic textview in android? JSONArray jsonarray; jsonarray = jsonobject.getJSONArray("floor"); { //How to proceed by using dynamic textview? } Thanks in advance
@newBee see no of bedrooms. I am using get post method.it's not unique key(no of bedrooms,plotsizestart) . If it's not unique, i can use by creating textviews and display it. But problem is all are unique and moreover number of columns also increase when I post it.

以上就是How to use dynamic textview from json in android的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JSON 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏