Jsoup Android,imageView和src

时间:2015-04-22 01:50:21

标签: java android image imageview jsoup

我有问题...... 我想更改图像(ImageView)。我从网站上捕获图像。 在此页面上有多个图像。 我想选择网址,然后进行更改。

Elements image;
       image = document.select("img");
       String PhotoSrc = image.attr("src");
    // OR
Elements castsImageUrl = document.select("img[src~=(?i)\\.(png|jpe?g|gif)]");
                imgSrc = castsImageUrl.first().attr("src");

我没有选择我想要的网址。我不知道怎么做。 当我有URL时,我更改了我的R.id.Photo?