I would use a custom adapter. Search on google for examples... (the first one I found that looks good: http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/ ).
On Mon, Dec 19, 2011 at 12:20 PM, Ashish Tiwari <[email protected]> wrote: > Hi friends, > > I'm stuck showing data [from json] in custom ListView. > > I created a custom-rowlayout to display the object Student. However i am > unable to display the objects Movie & Game in the ListView. > I tried it using array adapter( sample code ) - > http://pastebin.com/HsTmQSbz > > I'm only able to display String[] in a ListView. > > Any suggestions on how to implement such a thing ? > > This is my example JSON data to serialize . > > { > "studentname" : "ramesh", > "class" : "IV", > "favoritegames" : [ > {"name":"angry birds"}, > {"name":"need for speed"} > ], > "favoritemovies" : [ > {"name" : "MI-3"}, > {"name" : "TinTin"} > ] > } > > -- > 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 -- YuviDroid Check out Launch-X <http://android.yuvalsharon.net/launchx.php> (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- 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

