android - Implement 2D rotation using multi touch -


in code implemented:

  • zooming (with double tap , touble touch event)
  • scrolling
  • coordinate transformation pixel utm

using class matrix, proportions. in way coordinates correct.

i add rotation image, don't know how it. me?

this image activity:

public class mapactivity extends activity {  public void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);      touchimageview img = new touchimageview(this);     img.setimageresource(r.drawable.planimetria);     img.setmaxzoom(10f);     setcontentview(img); } 

this java file class:

http://pastebin.com/afukpgyz

thank help.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -