Solved

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

Posted on 2012-04-07
1
1,080 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
1 Comment
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 500 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
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…

786 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