What is the most efficient way of coding drag and zoom for android

Thanks a lot. Thanks for the correction as well, I think i meant panning.