¡@

Home 

2014/10/16 ¤W¤È 08:13:36

android Programming Glossary: firsttap

OnTap listener implementation

http://stackoverflow.com/questions/6716224/ontap-listener-implementation

DOUBLE_CLICK_MAX_DELAY 1000L private ImageView iView private long thisTime 0 private long prevTime 0 private boolean firstTap true Called when the activity is first created. @Override public void onCreate Bundle savedInstanceState super.onCreate.. View.OnTouchListener @Override public boolean onTouch View v MotionEvent event TODO Auto generated method stub if firstTap thisTime SystemClock.uptimeMillis firstTap false else prevTime thisTime thisTime SystemClock.uptimeMillis Check.. onTouch View v MotionEvent event TODO Auto generated method stub if firstTap thisTime SystemClock.uptimeMillis firstTap false else prevTime thisTime thisTime SystemClock.uptimeMillis Check that thisTime is greater than prevTime just..