I ve found a way to stop the scrolling in the map . The code given bleow will do it . Extend the Mapview class and override the despatchMotion event Method.
Using java Syntax Highlighting
- package com.google.android.maps;
- import android.content.Context;
- import com.google.googlenav.map.Map;
- import com.google.googlenav.map.TrafficService;
- import android.view.KeyEvent;
- import android.view.MotionEvent;
- public class MyMapView extends MapView {
- public MyMapView(Context context) {
- super(context);
- }
- void setup(Map map, TrafficService traffic) {
- mMap = map;
- super.setup(map, traffic);
- }
- public Map getMap() {
- return mMap;
- }
- private Map mMap;
- public boolean dispatchMotionEvent(MotionEvent e) {
- return false;
- }
- }
Parsed in 0.033 seconds, using GeSHi 1.0.8.4
Happy Coding !
Pravin Kumar



