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,106 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 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
In this post we will learn different types of Android Layout and some basics of an Android App.
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…

740 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