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
from scipy import interpolate | |
import numpy | |
import pylab | |
from pylab import * | |
from scipy.optimize import curve_fit | |
def func(x, a, b, c): |
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
View.OnTouchListener detectClickAndHoldListener = new View.OnTouchListener() { | |
private Timer timer = new Timer(); | |
private long LONG_PRESS_TIMEOUT = 1337; // TODO: your timeout here | |
private boolean wasLong = false; | |
@Override | |
public boolean onTouch(View v, MotionEvent event) { | |
Log.d(getClass().getName(), "touch event: " + event.toString()); |