开发者

How to tilt a mapview?

I have been able to rotate a mapv开发者_如何学Pythoniew by containing a mapview in a framelayout and then overriding the dispatchdraw function of framelayout view.

but how to get the tilt effect as seen when we use the two finger swipe feature in the new google maps application?

is there a way to rotate the canvas around x or y axis?


Use the camera.rotateX method, then apply it's matrix to your canvas. Or Y or Z for that matter, but you will have to counter rotate any touch events by an inverted matrix (if that matters)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜