Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能给我Java代码以从XML文件中获取单个子XML数据并listview在android中打印出来?
listview
看看 XmlPullParserhttp://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html
里面有一个简单的例子
要将这些数据放入 ListView,您需要将 xml 读入 ArrayAdapter 并使用它来填充列表视图