vorcigernix wrote: > Hello, > I made my application from various examples and sources, so now I have > filled jsonarray and prepared listview (with custom rows formatting). > Now I need to replace > > ListAdapter myAdapter =(new ArrayAdapter<String> > (this,R.layout.rowlayout, R.id.TextView01, values)); > > with my json array based adapter. All I found is some technique to > iterate through all json records and construct string array. It sound > like perverse to me, is it really necessary?
Create your own adapter class from BaseAdapter, and you can traverse your JSON however you want. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

