Last active
August 29, 2015 14:00
-
-
Save nutiteq/b546aaac8cdcfa6a7f09 to your computer and use it in GitHub Desktop.
overwritten mapview nutiteq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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