开发者

Parse a plist in android and display data in the list view

开发者 https://www.devze.com 2023-03-19 19:39 出处:网络
I am beginner in android, my requirement is to parse a plist file and display its result in thelist view.

I am beginner in android, my requirement is to parse a plist file and display its result in the list view.

List view contains an icon image, Name of the icon and an image button which shows price to buy that icon.

I am stru开发者_JAVA百科ggling from few days on this, can anybody let me know the solution?

Thanks in advance,

Tejaswi Marakini


As plist contains xml, you should use xml parser for that. User SAX or Pull parser. Use custom list adapter to show the content in ListView

Have a look on these examples

http://android-er.blogspot.com/2010/04/simple-rss-reader-in-listview.html

http://p-xr.com/android-tutorial-how-to-parseread-xml-data-into-android-listview/

0

精彩评论

暂无评论...
验证码 换一张
取 消