Back to project page SmartMap.
The source code is released under:
Apache License
If you think the Android project SmartMap listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.dennytech.smartmap.impl.google; /*from w w w . j a va2s.c o m*/ import android.content.Context; import com.dennytech.smartmap.MapViewCallback; import com.google.android.maps.MapView; public class MyGoogleMapView extends MapView { MapViewCallback mCallback; public MyGoogleMapView(Context ctx) { this(ctx, null); } public MyGoogleMapView(Context context, String apiKey) { super(context, apiKey); } public void setCallback(MapViewCallback callback) { mCallback = callback; } @Override public void computeScroll() { super.computeScroll(); if (mCallback != null) { mCallback.OnComputeScroll(); } } }