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:
thank help.
Comments
Post a Comment