if(bigimageS.length()==0){
show_image.setImageBitmap(null);
}else{
show_image.setImageBitmap(decodeImage(bigimageS));
}
****************
public static Bitmap decodeImage(String arrayList_image) {
BufferedInputStream bis;
URL aURL;
try{
aURL = new URL(arrayList_image);
URLConnection conn = aURL.openConnection();
conn.connect();
InputStream is = conn.getInputStream();
bis = new BufferedInputStream(is);
Bitmap bm = BitmapFactory.decodeStream(bis);
bis.close();
is.close();
return bm;
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
在imageview的设置空白图像这是我的代码,我想清楚imageview.my问题是我在bigimages String.i是从W/S加入IMAGEURL获取图像。在字符串bigimages.when我点击下一个BTN后一次图像设置,然后旧图像不清晰。因此PLZ帮助我把条件,但不working.plz的帮助。无法清除或安卓
我现在用的是decodeimage用于解码图像,这样是没有办法清除如果没有URL中string..help我PLZ不能解决尚未
好...它的工作... – Android