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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Android SDK is used for creating an android software application. It includes document and tools which are necessary to develop applications with java. In fact Android SDK is harder than other software infrastructure, because there is a virtual devi…
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now