[英]How to get child xml data from xml file in android?
谁能给我Java代码从XML文件中获取单个子XML数据并在android的listview
中打印出来?
take a look at XmlPullParserhttp://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html 看看XmlPullParserhttp://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html
Theres a straightforward example in there 那里有一个简单的例子
To get this data into a ListView you will need to read the xml into an ArrayAdapter and use this to populate the list view 要将数据获取到ListView中,您需要将xml读入ArrayAdapter并使用它来填充列表视图
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.