Pinch Zoom in and Zoom Out

ぐ巨炮叔叔 提交于 2019-12-24 00:25:43

问题


i am using visit How can I get zoom functionality for images? and got a project from visit https://github.com/MikeOrtiz/TouchImageView .

But when i am doing run it . i got a image and did not get any Pinch zoom .

Do i need to change in this code:-

  TouchImageView img = new TouchImageView(this);
  // ImageView img = new ImageView(this);
    Bitmap snoop = BitmapFactory.decodeResource(getResources(), R.drawable.snoopy);
    img.setImageBitmap(snoop);
    img.setMaxZoom(4f);
    setContentView(img);

please expert check it . Thank you for your kindly help.

Can any one help me By this project :- visit http://androidtrainningcenter.blogspot.in/2012/04/pinching-zoom-in-android-image-view-or.html i used in my project . but i am not understanding how can i use this class. i created my class which display image in imageview. and now i want to do pinchzoom

please check it expert . thank you

来源:https://stackoverflow.com/questions/13089031/pinch-zoom-in-and-zoom-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!