• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to zoom out a view in android

kurm1z

Lurker
Hello,

I am developing android apps for few months, and I am having a little bit of trouble right now.

What I am doing is building a sketch app, so I can draw canvas freely, and one of requirments is supporting phone orientation changes. So when phone gets from portait to landscape I need to make my canvas fit whole view.

I've played with pinch to zoom, and ScaleGestureListener's onScale() methods zooms out just like I want to. Problem is that I cant understand how onScale() method works and can't replicate it.

So how could I achieve something what works similiar like onScale() method with my canvas?
 
Back
Top Bottom