【发布时间】:2011-06-30 06:16:00
【问题描述】:
我是安卓新手。我想创建一个应用程序来从 URL 读取 XML 文件,并使用图像的 ImageUrl 在网格视图中显示图像。
感谢您的回答,但我可以从 url 读取 xml 文件,但我需要在 xml imageUrl 中是否存在,以便在网格视图中显示。
这是我的xml文件
<?xml version="1.0" encoding="UTF-8"?>
<channels>
<channel>
<name>ndtv</name>
<logo>http://a3.twimg.com/profile_images/670625317/aam-logo-v3-twitter.png</logo>
<description>this is a news Channel</description>
<rssfeed>ndtv.com</rssfeed>
</channel>
<channel>
<name>star news</name>
<logo>http://a3.twimg.com/profile_images/740897825/AndroidCast-350_normal.png</logo>
<description>this is a news Channel</description>
<rssfeed>starnews.com</rssfeed>
</channel>
</channels>
【问题讨论】: