想在android中显示gridView中的所有图像吗

想在android中显示gridView中的所有图像吗,android,Android,上面是我的XML。我想显示XML解析后的所有图像。当我打开Great Eastern Hotel时,它会显示来自标签FeaturedImage、1、2和3的所有图像。类似地,Benaki博物馆的hapens <?xml version="1.0" encoding="UTF-8"?> <Location> <attraction> <ID>291</ID> <Title>Great Easter

上面是我的XML。我想显示XML解析后的所有图像。当我打开Great Eastern Hotel时,它会显示来自标签FeaturedImage、1、2和3的所有图像。类似地,Benaki博物馆的hapens

<?xml version="1.0" encoding="UTF-8"?>
<Location>
   <attraction>
      <ID>291</ID>
      <Title>Great Eastern Hotel</Title>
      <FeaturedImage>http://tripatlas.s3.amazonaws.com/travel/wp-content/uploads/sites/10/2014/08/Lighthouse.jpg</FeaturedImage>
      <FeaturedImage1>http://tripatlas.s3.amazonaws.com/travel/wp-content/uploads/sites/10/2014/08/Banff-National-Park.jpg</FeaturedImage1>
      <FeaturedImage2>http://tripatlas.s3.amazonaws.com/travel/wp-content/uploads/sites/10/2014/08/Banff-National-Park.jpg</FeaturedImage2>
      <FeaturedImage3>http://tripatlas.s3.amazonaws.com/travel/wp-content/uploads/sites/10/2014/08/Banff-National-Park.jpg</FeaturedImage3>
   </attraction>
   <attraction>
      <ID>294</ID>
      <Title>Benaki Museum</Title>
      <FeaturedImage>http://tripatlas.s3.amazonaws.com/travel/wp-content/uploads/sites/10/2014/08/kali.jpg</FeaturedImage>
      <FeaturedImage1>http://tripatlas.s3.amazonaws.com/travel/wp-content/uploads/sites/10/2014/08/Banff-National-Park.jpg</FeaturedImage1>
      <FeaturedImage2>http://tripatlas.s3.amazonaws.com/travel/wp-content/uploads/sites/10/2014/09/Jellyfish.jpg</FeaturedImage2>
      <FeaturedImage3>http://tripatlas.s3.amazonaws.com/travel/wp-content/uploads/sites/10/2014/08/Banff-National-Park.jpg</FeaturedImage3>
   </attraction>
</Location>

上面我编写了从XML解析中获取数据的代码。我的主要目的是每当单击某个标题时,都要在gridView中显示该标题下的所有图像。只能在特定项目下查看一个图像,而不能在gridView中获取所有图像。

您有任何关于此问题的代码吗?请具体说明问题。你试过什么?你面临的问题是什么?任何你尝试过但失败的事情等等。我想你们都理解我的问题
    static final String KEY_ITEM = "attraction"; // parent node
    static final String KEY_ID = "ID";
    static final String KEY_TITLE= "Title";

    static final String KEY_IMAGE = "FeaturedImage";
    static final String KEY_IMAGE1 = "FeaturedImage1";
    static final String KEY_IMAGE2 = "FeaturedImage2";
    static final String KEY_IMAGE3 = "FeaturedImage3";





    ArrayList<HashMap<String, String>> mylist = new ArrayList<HashMap<String, String>>();
    String xml = ParseXMLMethods8.getXML();
    Document doc = ParseXMLMethods8.XMLfromString(xml);
    int numResults = ParseXMLMethods8.numResults(doc);
    NodeList children = doc.getElementsByTagName(KEY_ITEM);

                   for (int i = 0; i < children.getLength(); i++) 
                   {                            
            HashMap<String, String> map = new HashMap<String, String>();    
            Element e = (Element)children.item(i);
            map.put("ID", ParseXMLMethods8.getValue(e, KEY_ID));
            map.put("Title", ParseXMLMethods8.getValue(e, KEY_TITLE));
            map.put("FeaturedImage", ParseXMLMethods8.getValue(e, KEY_IMAGE));
                            map.put("FeaturedImage1", ParseXMLMethods8.getValue(e, KEY_IMAGE1));
                            map.put("FeaturedImage2", ParseXMLMethods8.getValue(e, KEY_IMAGE2));
                            map.put("FeaturedImage3", ParseXMLMethods8.getValue(e, KEY_IMAGE3));

                            mylist.add(map);            
        }