If you google it, you will find a lot of code and documentation regarding it. Please visit the link https://developers.google.com/maps/documentation/android/
you can start from here
https://developers.google.com/maps/documentation/android/start
you will find it very close to your requirement
1
solved Map behavior like in Google Maps application [closed]