android - how to apply zoom in/out functionality for Image view on button click? -


i new android , have create 1 android application shows images server. want apply zoom effects on button click. have 2 buttons 1 zoom in , form zoom out. want apply zoom in or out on click of related button click. searched lot did not find thing related specific case. have far implemented imageview.ontouchlisterner() zoom effects don't want want zoom on button click please me. thank in advance.

a simple technique used such purpose, make webview , load image using url webview on image clicked this:

webview web=(webview)findviewbyid(r.id.web);     mprogress = progressdialog.show(this, "please wait!", "loading image , zoom controlls...");     web.getsettings().setloadwithoverviewmode(true);     web.getsettings().setusewideviewport(true);     web.getsettings().setbuiltinzoomcontrols(true);     websettings settings = web.getsettings();     settings.setjavascriptenabled(true);     string url=getintent().getextras().getstring("imageurl");               web.setwebviewclient(new webviewclient() {             public boolean shouldoverrideurlloading(webview view, string url) {                 view.loadurl(url);                 return true;             }              // when finish loading page             public void onpagefinished(webview view, string url) {                 if(mprogress.isshowing()) {                     mprogress.dismiss();                 }             }         });              web.loadurl(url);  } 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -