Skip to content

Instantly share code, notes, and snippets.

@nutiteq
Last active August 29, 2015 14:00
Show Gist options
  • Save nutiteq/b546aaac8cdcfa6a7f09 to your computer and use it in GitHub Desktop.
Save nutiteq/b546aaac8cdcfa6a7f09 to your computer and use it in GitHub Desktop.
overwritten mapview nutiteq
package com.nutiteq.hellomap;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import com.nutiteq.MapView;
import com.nutiteq.log.Log;
public class MyMapView extends MapView {
private boolean touched;
public MyMapView(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public boolean onTouchEvent(MotionEvent event) {
Log.debug("onTouchEvent "+event.getAction());
this.setTouched(true);
return super.onTouchEvent(event);
}
public boolean isTouched() {
return touched;
}
public void setTouched(boolean touched) {
this.touched = touched;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment