?
Solved

How to get JSON Array's key,value dynamically and bind to Listview without generating Custom Layout

Posted on 2012-04-07
1
Medium Priority
?
1,119 Views
Last Modified: 2012-04-24
Hello,
I want to bind Json array directly to the Listview.but my field name will be change everytime. so i can't specify the field name hardcoded.and number of fields also varies.so how can i define Simple adapter as my view is not fix.
i.e. some time 2 textview,some time 3 textview

pls guide.

thanks & regards
0
Comment
Question by:citadelind
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 2000 total points
ID: 37821115
even with simple adapter, you pass it an xml layout for the row.
SimpleAdapter's ctor takes few parameters that you can actually provide externally as parameters. Besides, you could consider SimpleAdapter.ViewBinder.

if you explain what you have in mind in more details, perhaps it'll be easier to come up with better solution.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
Here, we have shared an easy step by step tutorial on how to download instagram images and videos on PC, Android Mobile and iOS mobile.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question