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 -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -