Reputation: 23
I wanna load picture from web or url address like : ` "https://images.detik.com/community/media/visual/2017/11/03/5e88c080-0570-47ca-8ea9-96209df2071d_169.jpeg?w=620"
But it cannot open or load as well.
What a code to make it works, please help thank you.
here my code
WebView wv = (WebView) findViewById(R.id.webView1);
wv.getSettings().setBuiltInZoomControls(true);
wv.getSettings().setJavaScriptEnabled(true);
img= (ImageView) findViewById(R.id.mainbackdrop);
//BIND
nameTxt.setText(name);
propTxt.setText(propellant);
wv.loadData(desc, "text/html","UTF-8");
PicassoClient.downloadImage(this,imageurl,img);
Upvotes: 0
Views: 127
Reputation: 4220
Picasso
Load Image then try this
Picasso.with(activity)
.load(path)
.placeholder(R.drawable.thumbnail_placeholder)
.resize(width,height)
.into(imageView);
Webview
Load image Then Try this my friend
wv.getSettings().setUseWideViewPort(true);
wv.getSettings().setDomStorageEnabled(true);
Upvotes: 2