Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 如何在webview中使用URL显示图像数组?_Xml_Arrays_String_Image_Url - Fatal编程技术网

Xml 如何在webview中使用URL显示图像数组?

Xml 如何在webview中使用URL显示图像数组?,xml,arrays,string,image,url,Xml,Arrays,String,Image,Url,好的,先来点背景资料: 我有大量的URL(200+),每个URL都包含一个jpeg或某种类型的图像,我想要一个应用程序,用户可以从列表视图中选择图像,并打开“imageShower”活动,该活动将有一个next、previous和refresh按钮,当然还有一个webview来显示图像 现在我对以下方面没有任何问题: 正在创建listview,正在按意图发送索引位置。。。 任何按钮 我想知道的是如何形成这个URL数组 我是否必须将200个URL放在一个字符串数组中,并在我的webview中逐个引

好的,先来点背景资料:

我有大量的URL(200+),每个URL都包含一个jpeg或某种类型的图像,我想要一个应用程序,用户可以从列表视图中选择图像,并打开“imageShower”活动,该活动将有一个next、previous和refresh按钮,当然还有一个webview来显示图像

现在我对以下方面没有任何问题: 正在创建listview,正在按意图发送索引位置。。。 任何按钮

我想知道的是如何形成这个URL数组

我是否必须将200个URL放在一个字符串数组中,并在我的webview中逐个引用它们

我更愿意使用XML,有没有一种方法仅仅通过某种索引位置号来引用URL字符串资源? 记住,我需要遍历URL列表,只显示一个资源不是问题,我不知道如何去“下一个”和“上一个”。。。 我唯一能想到的是200条if-else语句和块,它们肯定会破坏我的应用程序的性能

还有别的办法吗

我想举个简单的例子:-) 谢谢大家!